Goal
Setup a basic command line package in python.
Package
Let’s get to it
Create a virtual environnement.
|
|
Then the setup.py file: (require setuptools)
|
|
and the myapp.py
|
|
Then you can run :
|
|
and while you are in the venv you can run myapp and it will work.
Now, we need to get the cli basic function up.
Go back to myapp.py
|
|
and now you have a basic working command line.
More options in the docs of Click