A default template for a new CLI project, written in Python. Deals with all the boilerplate involved in the setuptools setup, etc.
Here's my preferred path to bliss:
- Start by installing
pipsi
. It's awesome. Instructions here. - Now install Cookiecutter:
$ pipsi install cookiecutter
. - Now use Cookiecutter to create your brand new project:
$ cd ~/Desktop && cookiecutter https://github.com/nvie/cookiecutter-python-cli.git
When running Cookiecutter, you'll need to provide some values. Here's what they're for:
project_name
-- "My Tool" (Used for marketing. Keep it short and capitalize accordingly.)repo_name
-- "python-mytool" (Name of the GitHub repo.)pypi_name
-- "mytool" (Name on PyPI, i.e. what people type topipsi install
.)script_name
-- "my-tool" (Binary of the script, i.e. what people will run on the command line.)package_name
-- "my_tool" (Name of the Python module/package used internally.)
Liberally licensed under BSD terms.