BSD Ports

misc/py-pexpect 4.9.0_1 DragonFly

Python module for controlling interactive programs in pseudo-terminal

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ISCL
Categories
misc, python
Package size
94.6 KiB, 648.6 KiB installed

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
DragonFlymisc/py-pexpect4.9.0_1
FreeBSDmisc/py-pexpect4.9.0_1
NetBSDdevel/py-pexpect4.9.0
MidnightBSDmisc/py-pexpect4.9.0_1

Install

Binary package:

pkg install py311-pexpect

From DPorts:

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

Dependencies

Run dependencies 2