Skip to main content

Pexpect is a Pure Python Expect-like module

Pexpect makes Python a better tool for controlling other applications.

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.

If you want to work with the development version of the source code then please read the DEVELOPERS document in the root of the source code tree.

Free, open source, and all that good stuff. http://pexpect.sourceforge.net/

PEXPECT LICENSE

This license is approved by the OSI and FSF as GPL-compatible.

http://opensource.org/licenses/isc-license.txt

Copyright (c) 2012, Noah Spurrier <noah@noah.org> PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES. THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Metadata

Release files for pexpect-nm 2.6

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-nm 2.6
File Size Uploaded Provenance
pexpect-nm-2.6.tar.gz 156.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pexpect-nm 2.6
File Interpreter ABI Platform
pexpect-nm-2.6.macosx-10.8-x86_64.tar.gz Details

Total release size: 226.8 kB

Release files / pexpect-nm-2.6.tar.gz

Download URL pexpect-nm-2.6.tar.gz
Size 156.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b64d4d9d65fabdae2f57fd77626d04ce5d63a3d6e031f6fe09ac508e2c939e37
BLAKE2b-256 checksum
How to use checksums
e7b153d2d22fdcb4275b3262c0102a0f13382c85ac22bd8fdd9bac99fe85ae8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pexpect-nm-2.6.macosx-10.8-x86_64.tar.gz

Download URL pexpect-nm-2.6.macosx-10.8-x86_64.tar.gz
Size 70.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d7e377990aa9bb9e63057ee38bace73b4e19abe80bceba04acda131bb4d2e101
BLAKE2b-256 checksum
How to use checksums
06a58cb5121e5d44e0a70be967f71057b917d490e983be58e947d74ebcbc1c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pexpect-nm 2.6

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.

Release history Release notifications | RSS feed

This release

2.6 This release

2 release files No provenance

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