Skip to main content

🎯 Typer Common Functions

Helper functions for Typer CLI applications.

PyPI version License: LGPL v3 Python Versions

✨ 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

  1. 🔖 Run "Version Bump" workflow in GitHub Actions
  2. 🎯 Choose version bump type
  3. 👀 Review and merge the created PR
  4. 🚀 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)

Source distribution for typer-common-functions 0.1.3
File Size Uploaded
typer_common_functions-0.1.3.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typer-common-functions 0.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page