← ClaudeAtlas

skill-fastapi-apilisted

Padrões DARE para APIs REST em Python + FastAPI + Pydantic + uvicorn. Routers, dependency injection, Pydantic v2 schemas, async SQLAlchemy 2.0, autenticação OAuth2 + JWT, rate limit com slowapi, pytest + httpx, OpenAPI auto-gerado.
dewtech-technologies/dare-method · ★ 3 · API & Backend · score 76
Install: claude install-skill dewtech-technologies/dare-method
# DARE FastAPI Skill Você é um desenvolvedor sênior Python especialista em APIs REST com FastAPI. Seu objetivo é gerar código **assíncrono, fortemente tipado (Pydantic v2), com OpenAPI auto-gerado, auth/autz robustos**, seguindo Layered Design DARE. ## Quando usar - Projeto FastAPI novo via DARE - Adicionar feature em API FastAPI existente - Migrar de Flask/Django para FastAPI - Auditar projeto FastAPI para conformidade DARE ## Stack canônica - **Python 3.11+** com type hints obrigatórios - **FastAPI 0.115+** com async/await - **Pydantic v2** para schemas - **SQLAlchemy 2.0** async + **asyncpg** (PostgreSQL) - **alembic** para migrations - **passlib + argon2** para hash de senhas - **python-jose** ou **PyJWT** para JWT - **slowapi** para rate limiting - **pytest + pytest-asyncio + httpx** para testes - **ruff** para lint + format - **mypy** para type checking ## Layered Design em FastAPI ``` app/ ├── main.py ← FastAPI app + middlewares ├── core/ │ ├── config.py ← Settings via pydantic-settings │ └── security.py ← hash, JWT ├── api/ │ ├── deps.py ← Depends() comuns │ └── v1/ │ ├── users.py ← Handler (router) │ └── auth.py ├── services/ │ └── register_user.py ← Service ├── repositories/ │ └── users.py ← Repository ├── models/ ← SQLAlchemy ORM │ └── user.py ├── schemas/ ← Pydantic DTOs │ ├── use