This repo is boilerplate for quickly creating Python click applications. It assumes the use of poetry. Start a new repo from this template and poetry init
and you should be good to go for starting dev on your CLI application.
It also serves as a way for me to keep an active version of my preferred tooling when starting out.
An empty .envrc
is kept to remind myself of integrations possible with direnv.
Very basic pre-commit hooks are set up.
To make this your own named CLI you will need to change
- The source directory name (currently
pycli
), remember to conform to python package naming conventions. name
inpyproject.toml
.- Entry point under
[tool.poetry.scripts]
inpyproject.toml
in the formname.entry_script:function_name
.
- python ^3.10
- click
- rich-click
- pyserde
- pydantic
- pre-commit
- pytest
- ruff