KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to create an interactive shell type application. For example: > ./app.py Enter a command to do something. eg `create name price`. For to get help, enter "help" (without quotes) > create item1 10 Created "item1", cost $10 > del item1 Deleted item1 > exit ... I could of course use an infinte loop getting user input, splitting the line to get the individual parts of the command, but is there a better way? Even in PHP (Symfony 2 Console) they allow you to create console commands to help setup web applications for example. Is there something like that in Python? (I am using Python 3)
Tags (comma-separated)
Save Edits
Cancel