Run a subprocess in a pseudo terminal
Project description
Launch and control a process in a pseudo terminal
Sometimes, piping stdin and stdout is not enough. There might be a password prompt that doesn’t read from stdin, output that changes when it’s going to a pipe rather than a terminal, or curses-style interfaces that rely on a terminal. If you need to automate these things, running the process in a pseudo terminal (pty) is the answer.
Interface:
p = PtyProcessUnicode.spawn(['python'])
p.read(20)
p.write('6+6\n')
p.read(20)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ptyprocess-0.2.tar.gz
(10.6 kB
view details)
File details
Details for the file ptyprocess-0.2.tar.gz.
File metadata
- Download URL: ptyprocess-0.2.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd2400f04e3d68f72a1daba5cf616b1d63e16046652cc79c22e498e462aa106
|
|
| MD5 |
112a725c375876b568a1c3345343f8b7
|
|
| BLAKE2b-256 |
3c8a4722c026dd2a16106bfda3934fdcf9bb782d92a234cbd7fb20b13d801f89
|