4 ms·
https://github.com/pexpect/pexpect https://github.com/pexpect/pexpect Python module for controlling interactive programs in a pseudo-terminal
by based2 7y ago
https://github.com/pexpect/pexpect https://github.com/pexpect/pexpect Python module for controlling interactive programs in a pseudo-terminal
- tyingq 7y agoThere's also Perl's Expect.pm. I know Perl isn't popular here, but it excels in this sort of use case. The compact syntax for regexes on responses makes it a good match for expect scripting. It can also be paired with IO:Pty for some advanced stuff.
- DrJosiah 7y agoYou are fighting the good fight, I kept trying and failing. Thank you. http://code.activestate.com/recipes/440554-module-to-allow-asynchronous-subprocess-use-on-win/ http://code.activestate.com/recipes/440554-module-to-allow-a... https://www.python.org/dev/peps/pep-3145/ https://www.python.org/dev/peps/pep-3145/