This is just a collection of handy code for doing database things.
Connections, flask setup, SQLAlchemy ORM helpers, temporary database setup and teardown (handy for integration tests).
Simply install with pip:
$ pip install sqlbag
If you want you can install the database drivers you need at the same time, by specifying one of the optional bundles.
If you're using postgres, this installs sqlbag
and psycopg2
:
$ pip install sqlbag[pg]
If you're installing MySQL/MariaDB then this installs pymysql
as well:
$ pip install sqlbag[maria]