What problem does it solve?
This Skill helps developers make informed decisions about Python frameworks, asynchronous programming, type hinting, project structure, and error handling, promoting best practices and efficient development.
Core Features & Use Cases
- Framework Selection: Guides users to choose the right Python web framework (FastAPI, Django, Flask) based on project needs.
- Async vs. Sync: Provides clear criteria for deciding when to use asynchronous programming.
- Type Hinting & Validation: Explains the importance and application of type hints and Pydantic for robust code.
- Project Structure: Offers principles for organizing Python projects of varying sizes.
- Error Handling & Testing: Outlines strategies for effective error management and testing.
- Use Case: A developer is starting a new API project and is unsure whether to use FastAPI or Django. This Skill provides a decision tree and comparison principles to help them make the optimal choice.
Quick Start
Use the python-patterns skill to understand when to use async def versus def in FastAPI.