A template of Click application CLI
Project description
click_app (template-cli)
Leveraging click python package to create cli tool template
A sample code of using click package for running command line tool
For general users to run the program with pip install
pip3 install click-app
click_app --name=Jason
For developers to develop features or fix bugs on github
https://github.com/chuangtc/click-template-cli
Install for development
pip3 install --upgrade pip setuptools wheel poetry
## The above could be run globally
python3 -m venv .venv
source .venv/bin/activate
pip install click
pip install -e .
pip install pytest
pytest
Usage
click_app --help
click_app --name=Jason
pip3 install --upgrade build
python3 -m build
After running it, deactivate the .venv
deactivate
Packaging and uploading to PyPI
Manual way (For the test.pypi purpose, it's ok)
https://packaging.python.org/en/latest/tutorials/packaging-projects/
Github action
https://dev.to/iamtekson/publish-package-to-pypi-and-release-new-version-using-github-actions-108k
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
click_app-0.1.4.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for click_app-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8a8514dcbce0f42c9c243f12f9d4aa2e8c0539637870cb879f3d44f87fbf2c |
|
MD5 | 3383dfc2d8726aecbedfa2dd49def166 |
|
BLAKE2b-256 | 6e7a2c8e6cc66f0e6e342025c35baf668607ac723a824c7f0887d23a32ff9aa9 |