GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yankeexe/cookiecutter-python-cli: Bootstrap your Python based CLI applications within minutes! :rocket:

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
{{cookiecutter.project_slug}}
{{cookiecutter.project_slug}}
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cookiecutter.json
cookiecutter.json
 
 

Repository files navigation

Cookiecutter for Python Click CLI 🍪

Comes with:

  • Pre-commit hooks
  • mypy
  • flake8
  • mkdocs-material
  • packaging
  • Containerization

Usage

Install cookiecutter.

$ pip install --user cookiecutter

Generate your project template using cookiecutter.

$ cookiecutter gh:yankeexe/cookiecutter-python-cli

Project Setup

  1. cd into project directory.

  2. Create a virtual environment.

$ make venv
  1. Activate it.
$ source venv/bin/activate
  1. Install development dependencies with editable mode to test the CLI.
$ make install

Take your CLI for a spin

This Cookiecutter comes with two generic CLI commands, namely, init and show.

NOTE

<<cli_command>> is the executable command you choose for your CLI during project setup.

$ <<cli_command>> init
$ <<cli_command>> show

Test with Docker

CLI commands can be tested with Docker.

  1. Build an image for the CLI.

    Image is tagged with the same name as the cli_command.

$ make docker-image
  1. Run the command inside the container.
$ docker-run --rm <<cli_command>> init

Documentation

  1. Install documentation-related dependencies.
$ make docs
  1. Serve the docs locally.
$ make serve-docs

Distribution

NOTE

Make sure you have account in PyPI before you try this out.

To publish you CLI to PyPI, run:

$ make distributions

dist directory will be created inside your project directory. Upload it to PyPI using:

$ twine dist/*

Help

For help related to make commands.

$ make help

About

Bootstrap your Python based CLI applications within minutes! 🚀

Topics

clicli-templatecommandlinecookiecuttercookiecutter-clickcookiecutter-python3

Resources

Readme
MIT license
Activity

Stars

8 stars

Watchers

1 watching

Forks

1 fork
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.