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.2.0.tar.gz (147.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pexpect-4.2.0-py2.py3-none-any.whl (56.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pexpect-4.2.0.tar.gz
  • Upload date:
  • Size: 147.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pexpect-4.2.0.tar.gz
Algorithm Hash digest
SHA256 bf6816b8cc8d301a499e7adf338828b39bc7548eb64dbed4dd410ed93d95f853
MD5 8071ec5df0f3d515daedafad672d1632
BLAKE2b-256 b37b7b3659b9d7059d6d21e23b2464c5c84bffd4a34450cbf0ed19c9a8a4a52f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pexpect-4.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4028556aa07ba31912041513124ecd4a094a15da9328feea1c35d9084f9f6ca8
MD5 ffc40d37cdbf9704457a53d7c314c54b
BLAKE2b-256 675aacfc2cae5ccc457aa49ef0cdbae33a16b81986f3384186be171a8c0a5db3

See more details on using hashes here.

Supported by

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