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.
Metadata
Release files for pexpect 4.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pexpect-4.2.1.tar.gz | 144.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pexpect-4.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 199.4 kB
Release files / pexpect-4.2.1.tar.gz
| Download URL | pexpect-4.2.1.tar.gz |
|---|---|
| Size | 144.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d132465a75b57aa818341c6521392a06cc660feb3988d7f1074f39bd23c9a92
|
|
BLAKE2b-256 checksum How to use checksums |
e813d0b0599099d6cd23663043a2a0bb7c61e58c6ba359b2656e6fb000ef5b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pexpect-4.2.1-py2.py3-none-any.whl
| Download URL | pexpect-4.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 55.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f853b52afaf3b064d29854771e2db509ef80392509bde2dd7a6ecf2dfc3f0018
|
|
BLAKE2b-256 checksum How to use checksums |
5b164859a0376be8b87bf3920b1f6e63b8a3c0ee42488babee07c87ca9316e03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pexpect 4.2.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.