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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

503 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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


Python-Template features animation

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, Vulture) βœ… βœ…
Pre-commit hooks (prek) βœ… βœ…
LLM (DSPY + LangFuse Observability) βœ… βœ…
FastAPI + Uvicorn ❌ βœ…
SQLAlchemy + Alembic ❌ βœ…
Auth (WorkOS + API keys) ❌ βœ…
Payments (Stripe) ❌ βœ…
Referrals + Agent system ❌ βœ…
Ralph Wiggum Agent Loop βœ… βœ…

Full comparison

Quick Start

  • make onboard - interactive onboarding CLI (rename, deps, env, hooks, media)
  • make all - sync deps and run main.py
  • make fmt - runs ruff format + JSON formatting
  • make test - runs all tests in tests/
  • make ci - runs all CI checks (ruff, vulture, ty, etc.)

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

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5