Flask-Alembic
Integrate Alembic with Flask.
Decision gist · record as of 2026-08-14
Yes, if you are building a Flask application with SQLAlchemy and need reliable schema versioning. The low install friction, permissive license, recent maintenance, and integration with Flask's config system make it the natural choice for this use case. The aging maintenance status and lack of async/offline support are not blockers for typical Flask deployments, but verify those features are not required for your project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; requires a Flask application instance and SQLAlchemy models to be useful.
- Low friction install with three straightforward dependencies.
- Last release was recent (2025-11-17) and the project remains actively maintained, though classified as aging rather than actively developed.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
last release 2025-11-17 (270 days) · last repo commit 2025-11-17 · 47 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 110,807 downloads/mo, #12,443 on PyPI
Alternatives
Verify before relying
pip install flask-alembic
from flask_alembic import Alembic
alembic = Alembic()
alembic.init_app(app)
# Then use: flask db revision "description"
# Or: alembic.revision('description') in app context- Whether the package works with async SQLAlchemy engines (description notes this is not currently supported).
- Current state of offline migration support (description notes this is not currently supported).
- Whether Flask-SQLAlchemy-Lite is actively maintained as an alternative to Flask-SQLAlchemy.
What it is and what it does
Flask-Alembic is a Flask extension that wraps Alembic, the industry-standard database migration tool, and integrates it directly into Flask's configuration and CLI. Instead of managing separate alembic.ini and env.py files, Flask-Alembic reads settings from Flask.config and automatically discovers your SQLAlchemy models and database engines from Flask-SQLAlchemy, Flask-SQLAlchemy-Lite, or plain SQLAlchemy. It provides both command-line commands (via `flask db`) and Python functions you can call within your application context, letting you generate migrations, apply upgrades, and access Alembic's internal API without leaving your Flask codebase.
The package is designed for teams already using Flask and SQLAlchemy who need to version and deploy schema changes reliably. It handles single and multiple database templates, supports named migration branches, and exposes Alembic's full API for advanced use cases. The main trade-offs are that offline migrations and async engines are not yet supported, and the project is maintained by the Pallets Community Ecosystem rather than as a primary focus.
Use it for
- Generate and apply database schema migrations automatically when deploying Flask applications with SQLAlchemy models.
- Manage multiple independent databases or migration branches within a single Flask application.
- Version control schema changes alongside application code using the `flask db` CLI during development.
- Programmatically create and apply migrations from within Flask application code during runtime.
- Transition from manual SQL scripts to tracked, reversible schema changes in existing Flask projects.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a Flask application with SQLAlchemy and need reliable schema versioning.
The low install friction, permissive license, recent maintenance, and integration with Flask's config system make it the natural choice for this use case. The aging maintenance status and lack of async/offline support are not blockers for typical Flask deployments, but verify those features are not required for your project.
Install
flask-alembic on PyPI
Before you install
Low friction install with three straightforward dependencies. Last release was recent (2025-11-17) and the project remains actively maintained, though classified as aging rather than actively developed.
Requires Python 3.10 or later; requires a Flask application instance and SQLAlchemy models to be useful.
License in practice
MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
pip install flask-alembic
from flask_alembic import Alembic
alembic = Alembic()
alembic.init_app(app)
# Then use: flask db revision "description"
# Or: alembic.revision('description') in app context
Verify before relying
- Whether the package works with async SQLAlchemy engines (description notes this is not currently supported).
- Current state of offline migration support (description notes this is not currently supported).
- Whether Flask-SQLAlchemy-Lite is actively maintained as an alternative to Flask-SQLAlchemy.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesalembicflasksqlalchemy |
| Maintenance | Aging 270 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,807 / month, #12,443 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: FlaskProgramming Language :: PythonTyping :: Typed |
Evidence: flask_alembic-3.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flask database migrations”
- Flask-AlembicFlask-Alembic integrates Alembic database migrations into Flask…
- Flask-MigrateFlask-Migrate handles SQLAlchemy database migrations for Flask…
- types-Flask-MigrateProvides type hints for Flask-Migrate, enabling type checkers like…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also Flask-Migrate · Flask-SQLAlchemy · starrocks · alembic · pytest-alembic · alembic_utils · alembic-autogenerate-enums · sqlalchemy-migrate · alembic-postgresql-enum · atlas-provider-sqlalchemy