A sample CLI project build with Poetry.
Project description
A small repo dedicated to desigining a CLI tool with Python via Click and built by the Poetry. For details, see:
Instructions
-
pip install poetry|pip install click- install poetry module -
poetry install- install project dependencies -
poetry run sf-helper "hello world"- test the cli -
poetry build- build the /dist folder -
pip install dist/sf_helper-0.0.1.tar.gz- install the cli locally -
Open a new terminal window and try the cli:
sf-helper --help -
Open a new terminal window. Run the following command(s):
Command Description sf-helper return_pokemon --pokemon charizardReturns data or details about the Pokémon named "charizard". sf-helper greet --name ianPrints a greeting message for the name "ian".
Testing
To run the test files in /tests, from the root directory execute the following command:
poetry run pytest
- Todo: possible to use runner.py to test cli commands more effectively?
Tagging
To add a tag to a branch, use git tag v0.0.1.
To trigger a test build, add a tag matching the v0.0.0 naming convention:
git checkout main
git tag v0.0.1
git push origin refs/tags/v0.0.1
Optionally:
git tag -f v0.0.1 HEAD
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sf_helper-0.0.1.tar.gz.
File metadata
- Download URL: sf_helper-0.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93d324be7abc191f13c402305b904c330b96a1c5a45581cc2188acae4c82a186
|
|
| MD5 |
f4e51978bc52b7b3720398be91bb2a6f
|
|
| BLAKE2b-256 |
854d67d02d34b159c59282e8866a94b696412ace3245d22cafffe287700b6ddf
|
File details
Details for the file sf_helper-0.0.1-py3-none-any.whl.
File metadata
- Download URL: sf_helper-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7771ae2859ac7dd90d97e7a328b5e2fccf11351b052c559731842cef6b61f575
|
|
| MD5 |
bb763167d4d2c940938329b7a689b90d
|
|
| BLAKE2b-256 |
55dfe8d8201cb015491dd6ba4876fc2bb22d22fb19193247ec6b2563aab30f51
|