
Python Patterns
This is a decision-making framework for Python development in 2025, not a pattern library to copy from. It walks you through choosing between FastAPI, Django, and Flask based on what you're actually building, explains when async makes sense versus when it's overkill, and covers project structure that scales with complexity. The philosophy is solid: ask about context, don't default to the same stack every time, understand I/O-bound versus CPU-bound work. Good for teams that keep bikeshedding architecture decisions or juniors who cargo-cult async everywhere. The type hints and testing sections are practical without being prescriptive.
- skills.sh installs
- 359
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill python-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Python Patterns
Python development principles and decision-making for 2025. Learn to THINK, not memorize patterns.
⚠️ How to Use This Skill
This skill teaches decision-making principles, not fixed code to copy.
- ASK user for framework preference when unclear
- Choose async vs sync based on CONTEXT
- Don't default to same framework every time
1. Framework Selection (2025)
Decision Tree
What are you building?
│
├── API-first / Microservices
│ └── FastAPI (async, modern, fast)
│
├── Full-stack web / CMS / Admin
│ └── Django (batteries-included)
│
├── Simple / Script / Learning
│ └── Flask (minimal, flexible)
│
├── AI/ML API serving
│ └── FastAPI (Pydantic, async, uvicorn)
│
└── Background workers
└── Celery + any framework
Comparison Principles
| Factor | FastAPI | Django | Flask |
|---|---|---|---|
| Best for | APIs, microservices | Full-stack, CMS | Simple, learning |
| Async | Native | Django 5.0+ | Via extensions |
| Admin | Manual | Built-in | Via extensions |
| ORM | Choose your own | Django ORM | Choose your own |
| Learning curve | Low | Medium | Low |
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Productivity & Planning, Python
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Biorxiv Database358
- Plan Writing358
- Risk Management Specialist358
- Langsmith Observability357
- Moe Training357
- Ab Test Setup356
- Codex356
- Javascript Mastery356
- Model Merging356
- Artifacts Builder355
- Blip 2 Vision Language355
- Programmatic Seo355
- Biopython354
- Production Code Audit354
- Model Pruning353
- Fda Consultant Specialist352
- Voice Ai Development351
- Evaluating Code Models350
- Geo Database350
- Notion Spec To Implementation350
- Training Llms Megatron350
- Changelog Generator349
- Performance Profiling349
- Server Management349