Install & Compatibility
Where this runs
tested against v0.13.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 46.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 44MB
48MB installed
● package 48MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
versioning
✓ from migrate.versioning import versioning
✗ from migrate import versioning
Basic usage: create a repository and run migrations.
from migrate.versioning import api
from migrate.versioning.repository import Repository
import os
db_url = os.environ.get('DATABASE_URL', 'sqlite:///test.db')
repo_path = '/path/to/migrations'
# Create repository: api.create(repo_path, 'myapp')
# Upgrade: api.upgrade(db_url, repo_path, version=None)
print('Migration setup ready.')
migrate --version
Upgrade
Version history
0.13.0latest on PyPI · released Oct 22, 2019
Audit
Dependencies
sqlalchemyrequiredCore dependency
sqlalchemy-declarativeoptionalRequired for ORM support