BSD Ports

misc/py-pexpect 4.9.0_1 MidnightBSD

Python module for controlling interactive programs in pseudo-terminal

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
iscl
Categories
misc, python

Description

Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output. Pexpect works like Don Libes' Expect. Pexpect allows your script to spawn a child application and control it as if a human were typing commands.

Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup scripts for duplicating software package installations on different servers. It can be used for automated software testing. Pexpect is in the spirit of Don Libes' Expect, but Pexpect is pure Python.

The main features of Pexpect require the pty module in the Python standard library, which is only available on Unix-like systems. Some features -- waiting for patterns from file descriptors or subprocesses -- waiting for patterns from file descriptors or subprocesses.

In the other systems

SystemPortVersion
MidnightBSDmisc/py-pexpect4.9.0_1
FreeBSDmisc/py-pexpect4.9.0_1
DragonFlymisc/py-pexpect4.9.0_1
HardenedBSDmisc/py-pexpect4.9.0_1
GhostBSDmisc/py-pexpect4.9.0_1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}pexpect

From mports:

cd /usr/mports/misc/py-pexpect && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect

Dependencies

As this port's Makefile names them.

Runtime 1

Run dependencies 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
pexpect-4.9.0.tar.gz166450ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f
Master sites 1
  • PYPI