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. Unlike other Expect-like modules for Python, Pexpect does not require TCL or Expect nor does it require C extensions to be compiled. It should work on any platform that supports the standard Python pty module. The Pexpect interface was designed to be easy to use.

Release files for pexpect 3.3

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 3.3
File Size Uploaded
pexpect-3.3.tar.gz 132.3 kB Details

Release files / pexpect-3.3.tar.gz

Download URL pexpect-3.3.tar.gz
Size 132.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dfea618d43e83cfff21504f18f98019ba520f330e4142e5185ef7c73527de5ba
BLAKE2b-256 checksum
How to use checksums
529713924c85a4b7544a4174781360e0530a7fff23e62d76da0e211369dd61f5
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

4.6.0

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

This release

3.3 This release

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