Skip to main content

various snippets of SQL-related boilerplate

Project description

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:

$ 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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlbag-0.1.1616397193.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

sqlbag-0.1.1616397193-py2.py3-none-any.whl (15.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sqlbag-0.1.1616397193.tar.gz.

File metadata

  • Download URL: sqlbag-0.1.1616397193.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sqlbag-0.1.1616397193.tar.gz
Algorithm Hash digest
SHA256 70990c9078a748c52a0bc57194d6a319997b8f4886bdc6610f93f2cf120d84ed
MD5 8a7154b91273c6b7c8c1584c8debad36
BLAKE2b-256 c752435abdb7a27e977b0617a945bd16c058d369bd0b0893663f5a4872a42457

See more details on using hashes here.

File details

Details for the file sqlbag-0.1.1616397193-py2.py3-none-any.whl.

File metadata

  • Download URL: sqlbag-0.1.1616397193-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sqlbag-0.1.1616397193-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c6f5ea3e9b440b4f8d97bf6749e0c35d160503ab322e3133c28362877ae28f8
MD5 265edeb4e28fc1c50710e514ba8a839f
BLAKE2b-256 de48acb41af45904ed05eff8b61e8d4d4c0c4bce5f9b25eb2b5eb32bf639ccd1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page