Name Date Size #Lines LOC

..--

ptyprocess/H--993711

.gitignoreH A D17-Dec-202156 86

.travis.ymlH A D03-Aug-2020136 108

LICENSEH A D03-Aug-2020905 1713

README.rstH A D03-Aug-2020541 1612

pyproject.tomlH A D03-Aug-2020729 2522

readthedocs.ymlH A D03-Aug-202023 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