Pexpect allows easy control of interactive console applications.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pexpect-4.6.0.tar.gz
.
File metadata
- Download URL: pexpect-4.6.0.tar.gz
- Upload date:
- Size: 149.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a8e88259839571d1251d278476f3eec5db26deb73a70be5ed5dc5435e418aba |
|
MD5 | d4f3372965a996238d57d19b95d2e03a |
|
BLAKE2b-256 | 894307d07654ee3e25235d8cea4164cdee0ec39d1fda8e9203156ebe403ffda4 |
Provenance
File details
Details for the file pexpect-4.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pexpect-4.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 57.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fbd41d4caf27fa4a377bfd16fef87271099463e6fa73e92a52f92dfee5d425b |
|
MD5 | 01c6e598410e31fc837b73ef43b2b55d |
|
BLAKE2b-256 | 89e6b5a1de8b0cc4e07ca1b305a4fcc3f9806025c1b651ea302646341222f88b |