What problem does it solve?
This Skill solves the challenges faced by developers when working with modern FastAPI services. It helps to refactor code to meet modern FastAPI patterns and best practices, avoiding common pitfalls and performance issues.
Core Features & Use Cases
- Lifespan Management: Offers patterns for managing async resources during the lifecycle of an app, improving efficiency and maintainability.
- Pydantic Schema Best Practices: Includes guidelines for using Pydantic v2 for data validation, making your API more robust.
- Middleware Ordering and Error Handling: Teaches the proper way to use middleware and error handlers in FastAPI, enhancing security and user experience.
- Dependency Injection and Routing Composition: Helps implement best practices in dependency injection and routing, improving code modularity.
- Test Overrides: Provides examples and guidelines for testing your FastAPI applications.
Quick Start
Run 'npx aiee-skills install fastapi-patterns' to get started and begin leveraging FastAPI patterns in your projects.