Skip to content

durandom/b4cli

Repository files navigation

b4cli - Modern Python CLI Application Template

Python 3.12+ License: CC BY-NC 4.0 Code style: Ruff

Modern Python CLI application template built with Typer, Rich, Pydantic, and comprehensive development tools.

🚀 Template Setup Commands

# Set your CLI name
NEW_NAME="mycli"

# Download and extract the template, then rename it
curl -L https://github.com/durandom/b4cli/archive/main.tar.gz | tar -xz
mv b4cli-main $NEW_NAME && cd $NEW_NAME

# Rename everything in 3 commands
find . -name "*b4cli*" | while read f; do mv "$f" "${f//b4cli/$NEW_NAME}"; done
find . -type f \( -name "*.py" -o -name "*.md" -o -name "*.toml" \) -exec sed -i '' "s/b4cli/$NEW_NAME/g" {} +
uv sync --group dev && uv run $NEW_NAME --help

Essential Commands

# Install dependencies
uv sync --group dev

# Run CLI
uv run b4cli

# Run tests
uv run pytest

# Code quality
uv run ruff check && uv run ruff format

# Run with logging
uv run b4cli -v example hello

License

Creative Commons Attribution-NonCommercial 4.0 - Free for personal/educational use, no commercial use.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors