Skip to main content

Flask-Alembic

This Flask extension provides a configurable Alembic migration environment around a Flask-SQLAlchemy database.

Full documentation

Installation

Install releases from PyPI:

pip install Flask-Alembic

Install the latest code from BitBucket:

pip install https://bitbucket.org/davidism/flask-alembic/get/default.tar.gz

Basic Usage

You’ve created a Flask application and some models with Flask-SQLAlchemy. Now start using Flask-Alembic:

from flask_alembic import Alembic

# Intialize the extension
alembic = Alembic()
alembic.init_app(app)

# Auto-generate a migration
alembic.revision('making changes')

# Upgrade the database
alembic.upgrade()

# Access the internals
environment_context = alembic.env

Commands are included for Click (Flask 0.11, or Flask-CLI):

$ flask db revision "making changes"
$ flask db upgrade

and Flask-Script:

$ python manage.py db --help

Metadata

Release files for Flask-Alembic 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Alembic 2.0.1
File Size Uploaded Provenance Actions
Flask-Alembic-2.0.1.tar.gz 16.4 kB Without provenance Details for Flask-Alembic-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Flask-Alembic 2.0.1
File Interpreter ABI Platform Actions
Flask_Alembic-2.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for Flask_Alembic-2.0.1-py2.py3-none-any.whl

Total release size: 27.0 kB

Release files / Flask-Alembic-2.0.1.tar.gz

Download URL Flask-Alembic-2.0.1.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
05a1e6f4148dbfcc9280a393373bfbd250af6f9f4f0ca9f744ef8f7376a3deec
BLAKE2b-256 checksum
How to use checksums
094d6cf6182051bd31177ec5612eec3b211af0a3880e82a4e6137b6d1518593b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Flask_Alembic-2.0.1-py2.py3-none-any.whl

Download URL Flask_Alembic-2.0.1-py2.py3-none-any.whl
Size 10.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7e67740b0b08d58dcae0c701d56b56e60f5fa4af907bb82b4cb0469229ba94ff
BLAKE2b-256 checksum
How to use checksums
c4fc63f9bccffbde7c303fe2958e6b54b4cdf8e0cb94c37b197362e1ef860230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-Alembic 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page