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

Uploaded Source

Built Distribution

pexpect-4.3.0-py2.py3-none-any.whl (55.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pexpect-4.3.0.tar.gz
Algorithm Hash digest
SHA256 00ab0872f80f5db740499e7a1283a7c3b97bea542d72df84d83dea17d0afd2d9
MD5 047a486dcd26134b74f2e67046bb61a0
BLAKE2b-256 f8445466c30e49762bb92e442bbdf4472d6904608d211258eb3198a11f0309a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pexpect-4.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b50dd8caa5007b10b0afcf075095814780b104b4a5cf9d8fbdc8bbc754e5ca4
MD5 0647e72afcd7fab3ecbaf9e59134be54
BLAKE2b-256 7d51883102f3f288deda0c29e5177d7bdef5b9f6d60098c0d37a1f5c8f765a93

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page