An open API service indexing awesome lists of open source software.

https://github.com/djrobstep/sqlbag

Handy python code for doing database things.
https://github.com/djrobstep/sqlbag

Last synced: 9 months ago
JSON representation

Handy python code for doing database things.

Awesome Lists containing this project

README

          

sqlbag: various sql boilerplate
===============================

This is just a collection of handy code for doing database things.

What is in the box
------------------

Connections, flask setup, SQLAlchemy ORM helpers, temporary database setup and teardown (handy for integration tests).

Installation
------------

Simply install with `pip `_:

.. code-block:: shell

$ 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``:

.. code-block:: shell

$ pip install sqlbag[pg]

If you're installing MySQL/MariaDB then this installs ``pymysql`` as well:

.. code-block:: shell

$ pip install sqlbag[maria]