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.6.0

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.6.0
File Size Uploaded
pexpect-4.6.0.tar.gz 149.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pexpect 4.6.0
File Interpreter ABI Platform
pexpect-4.6.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 206.9 kB

Release files / pexpect-4.6.0.tar.gz

Download URL pexpect-4.6.0.tar.gz
Size 149.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2a8e88259839571d1251d278476f3eec5db26deb73a70be5ed5dc5435e418aba
BLAKE2b-256 checksum
How to use checksums
894307d07654ee3e25235d8cea4164cdee0ec39d1fda8e9203156ebe403ffda4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pexpect-4.6.0-py2.py3-none-any.whl

Download URL pexpect-4.6.0-py2.py3-none-any.whl
Size 57.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3fbd41d4caf27fa4a377bfd16fef87271099463e6fa73e92a52f92dfee5d425b
BLAKE2b-256 checksum
How to use checksums
89e6b5a1de8b0cc4e07ca1b305a4fcc3f9806025c1b651ea302646341222f88b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

4.9.0

2 release files

4.8.0

2 release files

4.7.0

2 release files

This release

4.6.0 This release

2 release files

4.5.0

2 release files

4.4.0

2 release files

4.3.1

2 release files

4.3.0

2 release files

4.2.1

2 release files

4.2.0

2 release files

4.1.0

2 release files

4.0.1

1 release file

4.0

1 release file

3.3

1 release file

3.2

1 release file

3.1

1 release file

3.0

1 release file

2.4

1 release file

2.01

0.97

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