What problem does it solve?
This Skill provides guidance on making informed decisions for Python development, covering framework selection, asynchronous programming, type hinting, project structure, and performance optimization, enabling developers to build robust and efficient Python applications.
Core Features & Use Cases
- Framework Selection: Decision trees and comparison principles for choosing between FastAPI, Django, and Flask.
- Async vs. Sync: Guidance on when to use asynchronous programming and which libraries to leverage.
- Type Hinting: Best practices and patterns for using type hints effectively with Pydantic.
- Project Structure: Recommended directory layouts for various project sizes and types.
- Performance Optimization: Profiling tools and strategies for CPU and memory optimization.
- Use Case: When starting a new web API project, use this Skill to decide between FastAPI and Flask based on project requirements, and understand how to implement async views and Pydantic models for data validation.
Quick Start
Use the python-patterns skill to decide whether to use FastAPI or Django for a new API project.