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
- Framework Selection (2025)
🧠 Knowledge Modules (Fractal Skills)
-
Decision Tree
-
Comparison Principles
-
Selection Questions to Ask:
-
When to Use Async
-
The Golden Rule
-
Async Library Selection
-
When to Type
-
Common Type Patterns
-
Pydantic for Validation
-
Structure Selection
-
FastAPI Structure Principles
-
Django Async (Django 5.0+)
-
Django Best Practices
-
async def vs def in FastAPI
-
Dependency Injection
-
Pydantic v2 Integration
-
Selection Guide
-
When to Use Each
-
Exception Strategy
-
Error Response Philosophy
-
Testing Strategy
-
Async Testing
-
Fixtures Strategy
-
❌ DON'T:
-
✅ DO: