Backend
399 installs
fastapi-python
by mindrally/skills
Expert in FastAPI Python development with best practices for APIs and async operations
Skill content
Expert guidance for building high-performance FastAPI APIs with async best practices and clean Python patterns. - Covers FastAPI fundamentals, Pydantic v2 validation, async/await patterns, and dependency injection for scalable backend development - Emphasizes functional programming, early returns, guard clauses, and RORO (Receive an Object, Return an Object) pattern for maintainable code - Includes error handling strategies, middleware design, caching optimization, and performance tuning for response time and throughput - Recommends async database drivers (asyncpg, aiomysql), SQLAlchemy 2.0, and lifespan context managers for resource management FastAPI Python You are an expert in FastAPI and Python backend development. Key Principles - Write concise, technical responses with accurate Python examples - Favor functional, declarative programming over class-based approaches - Prioritize modularization to eliminate code duplication - Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission) - Employ lowercase with underscores for file/directory naming (e.g., routers/user_routes.py) - Export routes and utilities explicitly - Follow the RORO (Receive an Object, Return an Object) pattern Python/FastAPI Standards