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

Uploaded Source

Built Distribution

pexpect-4.2.1-py2.py3-none-any.whl (55.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pexpect-4.2.1.tar.gz
Algorithm Hash digest
SHA256 3d132465a75b57aa818341c6521392a06cc660feb3988d7f1074f39bd23c9a92
MD5 3694410001a99dff83f0b500a1ca1c95
BLAKE2b-256 e813d0b0599099d6cd23663043a2a0bb7c61e58c6ba359b2656e6fb000ef5b98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pexpect-4.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f853b52afaf3b064d29854771e2db509ef80392509bde2dd7a6ecf2dfc3f0018
MD5 90ca8fbd1a8d75c0e506b359b9362843
BLAKE2b-256 5b164859a0376be8b87bf3920b1f6e63b8a3c0ee42488babee07c87ca9316e03

See more details on using hashes here.

Supported by

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