I was instructed to create an interactive shell for embedding in python so that when called from the command line, it will be removed to this shell. Can anyone recommend me a library that will do this?
I need the ability to create custom words, "actions", so when a user types these words, my program can perform the correct function that I created. I would also like the auto-complete / tab to be performed on the custom words that I created.
Example:
$ python myapplication.py
$ myapp>
$ myapp> help
... prints the help menu
$ myapp> run service blah
.. service blah runs ...
$ myapp> exit
$
source
share