Skip to content
/ Python-Template Public template

🐍 Opinionated uv Python template with batteries included. Cursorrules, LLMs, linting, dead code analysis, and a whole lot more.

License

Notifications You must be signed in to change notification settings

Miyamura80/Python-Template

Repository files navigation

Python-Template

2

Opinionated Python project stack. πŸ”‹ Batteries included.

Key Features β€’ Quick Start β€’ Configuration β€’ Credits β€’ About the Core Contributors

Project Version Python Version GitHub repo size GitHub Actions Workflow Status


2

Key Features

Opinionated Python stack for fast development. The saas branch extends main with web framework, auth, and payments.

Feature main saas
UV + Pydantic config βœ… βœ…
CI/Linters (Ruff, Black, Vulture) βœ… βœ…
Pre-commit hooks (prek) βœ… βœ…
LLM (DSPY + LangFuse Observability) βœ… βœ…
FastAPI + Uvicorn ❌ βœ…
SQLAlchemy + Alembic ❌ βœ…
Auth (WorkOS + API keys) ❌ βœ…
Payments (Stripe) ❌ βœ…
Referrals + Agent system ❌ βœ…

Full comparison

Quick Start

  • make all - runs main.py
  • make fmt - runs black linter, an opinionated linter
  • make banner - create a new banner that makes the README nice 😊
  • make test - runs all tests defined by TEST_TARGETS = tests/folder1 tests/folder2

Configuration

from common import global_config

# Access config values from common/global_config.yaml
global_config.example_parent.example_child

# Access secrets from .env
global_config.OPENAI_API_KEY

Full configuration docs

Credits

This software uses the following tools:

About the Core Contributors

Made with contrib.rocks.

About

🐍 Opinionated uv Python template with batteries included. Cursorrules, LLMs, linting, dead code analysis, and a whole lot more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •