FastAPI — архитектура production-бэкенда
★ 7.5 · general
fastapi-backend is a Claude Code skill that provides best practices for building production-grade Python backends with FastAPI. It defines a layered project layout — routers, services, schemas, models, and deps — enforcing the rule that business logic never lives in route handlers. The skill covers async endpoints, dependency injection via Depends(), SQLAlchemy async sessions with automatic rollback, Pydantic models for request/response validation, and OAuth2-based authentication. It also includes patterns for lifespan startup/shutdown hooks, global exception handlers, response_model usage to prevent accidental data exposure, and CORS middleware configuration. Ideal for Python developers building REST APIs who want a predictable, maintainable architecture with clear separation of concerns.