Skip to main content

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.

Release files for pexpect 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pexpect 4.0.1
File Size Uploaded Provenance Actions
pexpect-4.0.1.tar.gz 143.7 kB Without provenance Details for pexpect-4.0.1.tar.gz

Release files / pexpect-4.0.1.tar.gz

Download URL pexpect-4.0.1.tar.gz
Size 143.7 kB
Tags Source
SHA-256 checksum
How to use checksums
232795ebcaaf2e120396dbbaa3a129eda51757eeaae1911558f4ef8ee414fc6c
BLAKE2b-256 checksum
How to use checksums
88503aa199018e996bcf963a81160083fd30557c3d4dab72eb1e9cce3afb69e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pexpect 4.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page