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.5.0.tar.gz (148.2 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.5.0-py2.py3-none-any.whl (57.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pexpect-4.5.0.tar.gz
Algorithm Hash digest
SHA256 9f8eb3277716a01faafaba553d629d3d60a1a624c7cf45daa600d2148c30020c
MD5 913fc0a68a915cdf6ad4250493c94cf7
BLAKE2b-256 090e75f0c093654988b8f17416afb80f7621bcf7d36bbd6afb4f823acdb4bcdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pexpect-4.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9783f4644a3ef8528a6f20374eeb434431a650c797ca6d8df0d81e30fffdfa24
MD5 4bef54a91af6fd35ebe022c7f7123d35
BLAKE2b-256 b93ce51a76fe78a877afd9acd95a51e3b7610c0983b19ef5a5dfa11735a619b8

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