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.
- Host: GitHub
- URL: https://github.com/djrobstep/sqlbag
- Owner: djrobstep
- License: unlicense
- Created: 2016-07-23T13:45:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T06:26:19.000Z (almost 3 years ago)
- Last Synced: 2025-04-13T00:36:45.519Z (9 months ago)
- Language: Python
- Size: 43 KB
- Stars: 16
- Watchers: 2
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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]