Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ python-cli-starter Public template

A Python CLI template to quickly bootstrap command-line applications. Includes basic structure, argument parsing, and logging.

Notifications You must be signed in to change notification settings

lanseria/python-cli-starter

Repository files navigation

Python CLI Starter Template

A minimal Python command-line application template using Typer and Rich.

Features

  • Basic CLI structure with Typer
  • Rich console output
  • Python project configuration (pyproject.toml)
  • Test setup with pytest

Installation

# Create virtual environment
python3 -m venv myenv
python3.12 -m venv myenv
source myenv/bin/activate  # macOS/Linux
# .\myenv\Scripts\Activate.ps1  # Windows

# Install dependencies
pip install -e .

Usage

cli hello [name]

Development

Run tests:

pytest

Project Structure

src/
  python_cli_starter/
    __init__.py    # Package initialization
    cli.py         # CLI commands
    main.py        # App entry point
tests/             # Test cases
pyproject.toml     # Project configuration

License

MIT

About

A Python CLI template to quickly bootstrap command-line applications. Includes basic structure, argument parsing, and logging.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published