What problem does it solve?
This Skill helps developers make informed decisions about Python frameworks, asynchronous programming, type hinting, and project structure, promoting robust and maintainable code.
Core Features & Use Cases
- Framework Selection: Guides choices between FastAPI, Django, and Flask based on project needs.
- Async vs. Sync: Clarifies when to use asynchronous programming for I/O-bound tasks versus synchronous for CPU-bound tasks.
- Type Hinting: Advises on effective use of type hints for clarity and validation, including Pydantic.
- Project Structure: Offers principles for organizing code in small, medium, and large Python projects.
- Use Case: A developer is starting a new web service and is unsure whether to use FastAPI for its speed and async capabilities or Django for its batteries-included features. This Skill provides a decision tree and comparison to help them choose the best fit.
Quick Start
Use the python-patterns skill to decide between FastAPI and Django for a new API project.