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 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—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.8.0.tar.gz (157.0 kB view details)

Uploaded Source

Built Distribution

pexpect-4.8.0-py2.py3-none-any.whl (59.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pexpect-4.8.0.tar.gz
  • Upload date:
  • Size: 157.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5rc1

File hashes

Hashes for pexpect-4.8.0.tar.gz
Algorithm Hash digest
SHA256 fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c
MD5 153eb25184249d6a85fde9acf4804085
BLAKE2b-256 e59bff402e0e930e70467a7178abb7c128709a30dfb22d8777c043e501bc1b10

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pexpect-4.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 59.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5rc1

File hashes

Hashes for pexpect-4.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0b48a55dcb3c05f3329815901ea4fc1537514d6ba867a152b581d69ae3710937
MD5 7bf9120209a613a6792c6f0619bd8428
BLAKE2b-256 397b88dbb785881c28a102619d46423cb853b46dbccc70d3ac362d99773a78ce

See more details on using hashes here.

Provenance

Supported by

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