Alembic
Database migrations for SQLAlchemyOpen source· verified Sep 2026
Versioned schema migrations for SQLAlchemy projects. It can autogenerate a migration by diffing your models against the database, which you then review and commit.
Official siteReach for it when
- Evolving a Postgres or MySQL schema in a Python project
Worth knowing
Autogenerate misses some changes, such as renames — always read the generated migration.