FastAPIProject — Books API (async reference)
Reference-grade, fully asynchronous Books REST API — twin of FlaskProject for side-by-side benchmark. 71 tests passing, 100% coverage, <1s run time, zero self-mocks.
FastAPI 0.115 + SQLAlchemy 2 async + asyncpg + Postgres 16 + Pydantic v2 + Alembic. Repository pattern, unified error envelope, structured JSON logging, multi-stage Dockerfile. Ruff. BSD-2-Clause.
Stack
FastAPI 0.115, SQLAlchemy 2 async, asyncpg, PostgreSQL 16, Pydantic v2, Alembic, Ruff, Docker