Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.05 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.05 KB

myclilibrary

python-cli

This repository is a template for a Python CLI library. Setting up the project for development should be as simple as:

  1. Update references to myclilibrary with custom name, be careful updating the folder src/myclilibrary.
  2. Create a virtualenv with python -m venv env.
  3. Move the virtualenv source env/bin/activate.
  4. Install Poetry using official documentation.
  5. Install project with poetry install.
  6. 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.