fastapi-sqlalchemy-pytest icon indicating copy to clipboard operation
fastapi-sqlalchemy-pytest copied to clipboard

Repository containing sample code for running FastAPI and SQLAlchemy 2.0 together with pytest

FastAPI + SQLAlchemy2.0

This is a sample project to show how to use FastAPI with async SQLAlchemy2.0. It also includes a simple example of how to use Alembic to manage database migrations.

Companion blog post

FastAPI + SQLAlchemy2.0