Bear with me for my fledgling knowledge of Python and please feel free to point me to update the title if it sounds incorrect.
I am looking for a python module that can run as an independent thread(Producer) and can accept strings from Terminal and pass those strings to another thread(Consumer) which will ultimately parse these strings and treat them as commands for a specific domain and will ultimately act upon it. I have implemented something similar in recent past in C++ via worker threads and queues and function call-back and will ultimately do so if nothing is found in Python's vast amount of open source archive. But if somebody know of some open source module that can fulfill this functionality, I will be highly obliged.
I have found a similar question on SO here which points to a curses based library but that is not what I am looking for.
I have also found some code which can serve my purpose here and is very similar to the work I have done with C++ but It definitely needs a lot of bells and whistles before converting to a full blown CLI application.
Any pointers are appreciated.