Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

remarkablemark/python_cli_template

Repository files navigation

python_cli_template

PyPI version codecov lint

🐍 Python CLI Template

Quick Start

Greet a name:

pipx run python_cli_template --name world

Prerequisites

CLI

Install the CLI:

pipx install python_cli_template

--name

Optional: Name to greet. Defaults to World.

python_cli_template --name Alex

--version

Show the program's version number and exit:

python_cli_template --version # python_cli_template -v

Show the help message and exit:

python_cli_template --help # python_cli_template -h

Script

Create a virtual environment:

python3 -m venv .venv

Activate the virtual environment:

source .venv/bin/activate

Install the package:

pip install python_cli_template

Greet a name:

# script.py
from python_cli_template import hello
print(hello("Bob"))

Run the script:

python script.py

License

MIT

Releases

No releases published

Packages

No packages published

Contributors 3

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /