What problem does it solve?
This Skill helps developers make informed decisions about Python project structure, framework selection, asynchronous programming, and type hinting, leading to more robust and maintainable code.
Core Features & Use Cases
- Framework Guidance: Provides decision trees and comparison principles for choosing between FastAPI, Django, and Flask based on project needs.
- Async vs. Sync: Offers clear guidelines on when to use asynchronous programming and which libraries to leverage.
- Type Hinting Strategy: Teaches best practices for applying type hints and using Pydantic for validation.
- Project Structure: Suggests scalable project structures for small, medium, and large Python applications.
- Use Case: A developer is starting a new web API project and is unsure whether to use FastAPI or Django. This Skill guides them through the decision-making process based on their specific requirements (e.g., API-first, async needs, admin interface).
Quick Start
Use the python-patterns skill to decide between FastAPI and Django for a new API project.