🎯 Typer Common Functions
Helper functions for Typer CLI applications.
✨ Features
- 📝 Rich-based logging configuration
- ⚡ Typer helper functions and utilities
📦 Installation
Available on PyPI:
pip install typer-common-functions
🚀 Usage
from 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}!"
🛠️ Development
📋 Requirements
- 🐍 Python 3.8+
- 🏗️ Hatch for project management
- ⚡ UV for dependency management
- 🐳 Dev Container support (optional)
⚙️ Setup
# 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
🔍 Code Quality
- ✅ Testing: pytest with coverage
- 🔬 Linting: flake8, pylint, mypy
- 🎨 Formatting: black, isort
- 🛡️ Security: bandit
- 🔄 Git hooks: pre-commit
📦 Release Process
- 🔖 Run "Version Bump" workflow in GitHub Actions
- 🎯 Choose version bump type
- 👀 Review and merge the created PR
- 🚀 Automated release and PyPI publish on merge
📄 License
LGPL-3.0-or-later - see LICENSE
Metadata
Release files for typer-common-functions 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typer_common_functions-0.1.3.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typer_common_functions-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / typer_common_functions-0.1.3.tar.gz
| Download URL | typer_common_functions-0.1.3.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40b7766ac40b5e3a8b38b958f3e7cbdfb821d1412da47cc24580a49525c3dd40
|
|
BLAKE2b-256 checksum How to use checksums |
2816ba97b08dfcfbf20f050e5c2054c52a1f8be3a20a748558ac0990a000139e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1
|
Release files / typer_common_functions-0.1.3-py3-none-any.whl
| Download URL | typer_common_functions-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03dd31f31165f34a86ca22b0bd1b713d57f2b65ced9c6ce79cfbc25d024a3633
|
|
BLAKE2b-256 checksum How to use checksums |
ab93e51707add865ec7ca9e0783cdbdd071cfbe2fc04d8e8eccda4e6d634e371
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1
|