I am currently developing a simple application in python that connects to a server. At the moment, it's single-threaded (as multithreading is not currently required).
However I would like - for debugging, maintenance and such to also be able to have a REPL via stdin.
How do I go about that, if possible? Will I need to keep anything in mind? Will I have to make a separate thread for it?
You either need to go non-blocking or use a thread.
I would personally use Twisted for concurrency, which also offers a REPL-protocol which is easy to integrate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With