Skip to main content

Pexpect allows easy control of interactive console applications.

Project 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 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—are also available on Windows.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pexpect-4.9.0.tar.gz (166.4 kB view details)

Uploaded Source

Built Distribution

pexpect-4.9.0-py2.py3-none-any.whl (63.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pexpect-4.9.0.tar.gz.

File metadata

  • Download URL: pexpect-4.9.0.tar.gz
  • Upload date:
  • Size: 166.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pexpect-4.9.0.tar.gz
Algorithm Hash digest
SHA256 ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f
MD5 f48d48325ee7f1221add0396ea9e2f14
BLAKE2b-256 4292cc564bf6381ff43ce1f4d06852fc19a2f11d180f23dc32d9588bee2f149d

See more details on using hashes here.

File details

Details for the file pexpect-4.9.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pexpect-4.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 63.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pexpect-4.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7236d1e080e4936be2dc3e326cec0af72acf9212a7e1d060210e70a47e253523
MD5 cf02fc20a67a1cc8b6fbabdeb6d3c0bf
BLAKE2b-256 9ec3059298687310d527a58bb01f3b1965787ee3b40dce76752eda8b44e9a2c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page