Cursor rules for building async APIs with FastAPI, Pydantic v2, and SQLAlchemy.
- Pydantic v2 models (model_validator, field_validator, ConfigDict)
- Async patterns with asyncio, httpx, aiofiles
- Dependency injection with Depends() and Annotated types
- SQLAlchemy 2.0 async with repository pattern
- Error handling with HTTPException and custom exception handlers
- Testing with pytest-asyncio and httpx AsyncClient
- Security (JWT, bcrypt, CORS, rate limiting)
- Alembic migrations
cp .cursorrules /path/to/your/fastapi-project/.cursorrules