prompt · PyPI
https://pypi.org/project/prompt05.06.2017 · Project description Python Prompt Package Prompt and verify user input on the command line. Python 3.3+ and Wheels are supported. The project was initiated by Stefan Fischer. Documentation is available on PythonHosted. Questions can be asked via e-mail. Changes between releases are documented. Source code is tracked on GitHub.
How to execute a command prompt command from python
https://stackoverflow.com/questions/548672529.03.2011 · Try adding a call to proc.stdin.flush() after writing to the pipe and see if things start behaving more as you expect. Explicitly flushing the pipe means you don't need to worry about exactly how the buffering is set up. Also, don't forget to include a "\n" at the end of your command or your child shell will sit there at the prompt waiting for completion of the command entry.