sqla-wrapper
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 preconfigured scoped session.
- A model baseclass including some helper methods.
- A helper for performant testing with a real database
- An
Alembic
wrapper that loads the config from your application instead of an ini file. - A
sa
helper module, that imports all the functions and classes fromsqlalchemy
andsqlalchemy.orm
, so you don't need to repeat those imports everywhere.