Alembic
Database migration tool for Python that runs versioned schema changes through SQLAlchemy.
alembic.sqlalchemy.orgrepositorydocs
Alembic is a database migration tool for Python projects that use SQLAlchemy. It runs migration scripts that change a database’s schema, and each script can upgrade the database to a new state or step it back down. The README describes an autogenerate step that compares the database with the SQLAlchemy models and writes candidate scripts for the developer to edit before running them.
Alembic installs from PyPI with pip. The README says Alembic is written by the author of SQLAlchemy, and the front page states that it is part of the SQLAlchemy project.
Worth knowing
SQLite supports few ALTER statements, so Alembic’s batch mode rebuilds a table as a copy and moves the rows across when a migration changes it. The batch page describes this process.
Sources
- 2026-11-04: links, Categories
alembic.sqlalchemy.org/ - 2026-11-04: links, License, GitHub stars
api.github.com/repos/sqlalchemy/alembic - 2026-11-04: links
alembic.sqlalchemy.org/en/latest/ - 2026-11-04: First release
pypi.org/pypi/alembic/json - 2026-11-04: Maintainer, License, License model
github.com/sqlalchemy/alembic/blob/main/LICENSE - 2026-11-04: Written in
github.com/sqlalchemy/alembic - 2026-11-04: Runtime, Install with
alembic.sqlalchemy.org/en/latest/front.html - 2026-11-04: Minimum runtime
github.com/sqlalchemy/alembic/blob/rel_1_20_1/pyproject.toml - 2026-11-04: Databases
github.com/sqlalchemy/alembic/blob/main/README.rst - 2026-11-04: Databases
alembic.sqlalchemy.org/en/latest/changelog.html - 2026-11-04: Current major version, Last release
github.com/sqlalchemy/alembic/releases/tag/rel_1_20_1 - 2026-11-04: Contributors
api.github.com/repos/sqlalchemy/alembic/contributors - 2026-11-04: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/pypi.org/packages/alembic