Name Date Size #Lines LOC

..13-Mar-2025-

ptyprocess/H13-Mar-2025-993711

.gitignoreH A D13-Mar-202556 86

.travis.ymlH A D13-Mar-2025136 109

LICENSEH A D13-Mar-2025905 1713

README.rstH A D13-Mar-2025541 1612

pyproject.tomlH A D13-Mar-2025729 2522

readthedocs.ymlH A D13-Mar-202523 32

README.rst

1Launch a subprocess in a pseudo terminal (pty), and interact with both the
2process and its pty.
3
4Sometimes, piping stdin and stdout is not enough. There might be a password
5prompt that doesn't read from stdin, output that changes when it's going to a
6pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
7If you need to automate these things, running the process in a pseudo terminal
8(pty) is the answer.
9
10Interface::
11
12    p = PtyProcessUnicode.spawn(['python'])
13    p.read(20)
14    p.write('6+6\n')
15    p.read(20)
16