Skip to main content

A framework-independent modern wrapper for SQLAlchemy & Alembic

Project description


A friendly wrapper for modern SQLAlchemy (v1.4 or later) and Alembic.



  • A SQLAlchemy wrapper, that does all the SQLAlchemy setup and gives you:

    • A scoped session extended with some useful active-record-like methods.
    • A declarative base class.
    • A helper for performant testing with a real database.
    from sqla_wrapper import SQLAlchemy
    db = SQLAlchemy("sqlite:///db.sqlite", **options)
    # You can also use separated host, name, etc.
    # db = SQLAlchemy(user=…, password=…, host=…, port=…, name=…)
  • An Alembic wrapper that loads the config from your application instead of from separated alembic.ini and files.

    from sqla_wrapper import Alembic, SQLAlchemy
    db = SQLAlchemy()
    alembic = Alembic(db, "db/migrations")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqla_wrapper-6.0.0.tar.gz (10.3 kB view hashes)

Uploaded source

Built Distribution

sqla_wrapper-6.0.0-py3-none-any.whl (11.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page