Helper functions for Typer CLI applications.
- 📝 Rich-based logging configuration
- ⚡ Typer helper functions and utilities
Available on PyPI:
pip install typer-common-functionsfrom typer_common_functions import set_logging, typer_unpacker
# Configure logging with Rich
set_logging(verbose=True)
# Create CLI commands with type hints
@typer_unpacker
def hello(name: str) -> str:
return f"Hello {name}!"- 🐍 Python 3.8+
- 🏗️ Hatch for project management
- ⚡ UV for dependency management
- 🐳 Dev Container support (optional)
# Install tools
uv pip install hatch pre-commit
pre-commit install
# Create dev environment
hatch shell
# Run tests
hatch run dev:test
# Run linting
hatch run dev:lint
# Run formatters
hatch run dev:format- ✅ Testing: pytest with coverage
- 🔬 Linting: flake8, pylint, mypy
- 🎨 Formatting: black, isort
- 🛡️ Security: bandit
- 🔄 Git hooks: pre-commit
- 🔖 Run "Version Bump" workflow in GitHub Actions
- 🎯 Choose version bump type
- 👀 Review and merge the created PR
- 🚀 Automated release and PyPI publish on merge
LGPL-3.0-or-later - see LICENSE