A framework-independent modern wrapper for SQLAlchemy & Alembic.
Project description
A friendly wrapper for modern SQLAlchemy (v1.4 or later) and Alembic.
Documentation: https://jpsca.github.io/sqla-wrapper/
Includes:
-
A SQLAlchemy wrapper, that does all the SQLAlchemy setup and gives you:
- A scoped session extended with some useful active-record-like methods and pagination.
- 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
andenv.py
files.from sqla_wrapper import Alembic, SQLAlchemy db = SQLAlchemy(…) alembic = Alembic(db, "db/migrations")
Project details
Release history Release notifications | RSS feed
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-5.0.0.tar.gz
(13.4 kB
view hashes)
Built Distribution
Close
Hashes for sqla_wrapper-5.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce84a69e92e7023729a78896bd8ac3b22546aa33b22b8d0397e10f32f394f987 |
|
MD5 | 0e8fb86e58b14e81d97a5859a0d283cf |
|
BLAKE2b-256 | 515086dce7398392c2aa65786034cf439565ee8091aedd33ad73b89ef211da95 |