pexpect: Python module for controlling and automating other programs - Packages and Features

Skip to content
Back to top
View this page
Edit this page

# pexpect: Python module for controlling and automating other programs

## Description

Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output.

## License

ISC license: http://opensource.org/licenses/isc-license.txt This license is approved by the OSI and FSF as GPL-compatible.

## Upstream Contact

- http://pexpect.readthedocs.org/en/stable/

- https://github.com/pexpect/pexpect

## Type

standard

## Dependencies

- $(PYTHON)

- $(PYTHON_TOOLCHAIN)

- ptyprocess: Python interaction with subprocesses in a pseudoterminal

## Version Information

package-version.txt:

    4.9.0

version_requirements.txt:

    pexpect >=4.8.0

## Equivalent System Packages

Arch Linux

    $ sudo pacman -S python-pexpect

conda-forge

    $ conda install pexpect

Fedora/Redhat/CentOS

    $ sudo dnf install python3-pexpect

FreeBSD

    $ sudo pkg install misc/py-pexpect

Gentoo Linux

    $ sudo emerge dev-python/pexpect

MacPorts

    $ sudo port install py-pexpect

openSUSE

    $ sudo zypper install 'python3${PYTHON_MINOR}-pexpect'

Void Linux

    $ sudo xbps-install python3-pexpect

See https://repology.org/project/pexpect/versions, https://repology.org/project/python:pexpect/versions

If the system package is installed and if the (experimental) option `--enable-system-site-packages` is passed to `./configure`, then `./configure` will check if the system package can be used.