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?