Writing a command-line interface (CLI) is an easy way to extend the functionality and ease of use of any code you write.
Python comes with the built-in module, argparse, that can be used to easily develop command-line interfaces. To speed up the process, I have developed a ‘skeleton’ application that can be forked on github and used to quickly develop CLI programs in python.
The repo has the following features added:
- Testing with travis-ci and py.test
- Coverage analysis using coveralls
- A setup file that will install the command
- a simple argparse interface
To get started, you should signup for an account on travis-ci and coveralls, and fork the repo!