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.1616028516.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

sqlbag-0.1.1616028516-py2.py3-none-any.whl (14.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: sqlbag-0.1.1616028516.tar.gz
  • Upload date:
  • Size: 11.6 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.1616028516.tar.gz
Algorithm Hash digest
SHA256 d476f3639e8de4044a4f7177959fdbf1a4a212b38a13906548a2fd248073c504
MD5 1829d4aac5dfb28ef3a565f4401dd383
BLAKE2b-256 40e7c411c0dc048cda25bba4487d95ff0fc38958267844925741c2dcb8b009ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlbag-0.1.1616028516-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.9 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.1616028516-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb29b6683a3aac0dcac3c1723973f6003c018d88a6fd130dd86e651561408e75
MD5 de452b54e4d74c2fdc1137fd0ca1598e
BLAKE2b-256 796d68f1a86159bcfd9b8cbbaae47c2ae82be0250cbbabb455fb9201d617d027

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