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
Installation for development
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel poetry
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
Some minor changes, please checkout my .github/workflows
Metadata
Release files for click-app 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| click_app-0.1.5.tar.gz | 3.4 kB | Without provenance | Details for click_app-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| click_app-0.1.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for click_app-0.1.5-py2.py3-none-any.whl |
Total release size: 7.2 kB
Release files / click_app-0.1.5.tar.gz
| Download URL | click_app-0.1.5.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5c257a408f359a347d11d119b3d732671d0fe36be7e11b393d40d5b57594220
|
|
BLAKE2b-256 checksum How to use checksums |
ba6614bfa596eb00aed622b3c73bbffe71e4ea6c862e7ab81a125efd7b288036
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / click_app-0.1.5-py2.py3-none-any.whl
| Download URL | click_app-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e4d2f9d36c21e8f7fcdcbf3c05292ff2a9aaeed2238664746674904d41f5c556
|
|
BLAKE2b-256 checksum How to use checksums |
344010577425e81d29fab6e11f36badfebef868f3b13bc4871905d5823f795b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for click-app 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.