title: Custom Interactive Shell with AutoComplete
body: <p>I have been tasked to create an interactive shell to be embedded in python, such that, when called from the command line it will be dropped into that shell. Can anyone recommend me a library that does this?</p>
  
  <p>I would need the ability to create custom words, "actions," so when the user types those words, my program can execute the correct function that I have created. I would also like the ability of auto complete / tab complete on the custom words I created.</p>
  
  <p>Example:</p>
  
  <pre><code>$ python myapplication.py
  $ myapp&gt; 
  $ myapp&gt; help
     ... prints the help menu
  $ myapp&gt; run service blah
     .. service blah runs ...
  $ myapp&gt; exit
  $ 
  </code></pre>