π Python CLI Template
Greet a name:
pipx run python-cli-template --name worldInstall with pipx:
pipx install python-cli-templateOr install with uv:
uv tool install python-cli-templateOptional: Name to greet. Defaults to World.
python-cli-template --name AlexShow the program's version number and exit:
python-cli-template --version # python-cli-template -vShow the help message and exit:
python-cli-template --help # python-cli-template -hInstall the package:
uv add python-cli-templateGreet a name:
# script.py
from python_cli_template import hello
print(hello("Bob"))Run the script:
uv run script.py