BSD Ports

devel/py-pexpect 4.9.0p2 OpenBSD

pure Python Expect-like module

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, lang/python

Description

Pexpect makes Python a better tool for controlling other applications.

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 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. Unlike other Expect-like modules for Python, Pexpect does not require TCL or Expect nor does it require C extensions to be compiled.

In the other systems

SystemPortVersion
OpenBSDdevel/py-pexpect4.9.0p2
NetBSDdevel/py-pexpect4.9.0

Install

Binary package:

pkg_add py3-pexpect

From the ports tree:

cd /usr/ports/devel/py-pexpect && make install

Dependencies

Build dependencies 6
Run dependencies 2