This repository is a template for a Python CLI library. Setting up the project for development should be as simple as:
- Update references to
myclilibrary
with custom name, be careful updating the foldersrc/myclilibrary
. - Create a virtualenv with
python -m venv env
. - Move the virtualenv
source env/bin/activate
. - Install Poetry using official documentation.
- Install project with
poetry install
. - Setup pre-commit with
poetry run pre-commit install
.
The library implements a command line interface based on click that can easily be called once installed.
python -m myclilibrary --help
Usage: python -m myclilibrary [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
initdb Initialize a database.