Delembic¶
Data migration framework for Python — Alembic for ETL and data operations.
Alembic versions schema changes. Delembic versions data changes: vocabulary loads, ETL runs, reference data inserts, corrections. Together they describe the complete state of your database.
Note
Delembic is designed to work alongside Alembic, not replace it. Schema migrations stay in Alembic; data migrations move to Delembic.
Why Delembic?¶
Declarative migrations — write a class, declare dependencies, run
DAG-based execution — topological sort ensures correct order regardless of file names
Alembic integration — verifies schema migrations are applied before data migrations run
Audit trail — every run recorded; failure records survive transaction rollbacks
Retry-safe — failed migrations can be re-run; state table reflects latest outcome
Quick Install¶
pip install delembic