Skip to main content

given a sqlalchemy query, display a well formatted and highlighted sql code.

Project description

Given a sqlalchemy query, display a well formatted and highlighted sql code.

Install and usage

pip install sqlalchemy-pretty-sql

And then just import the package in your notebook session

In[3]: import sqlalchemy_pretty_sql
In[4]: query

After sqlalchemy_pretty_sql is imported, its pretty_sql function is registered to display the sql of any sqlalchemy.orm.query.Query object.

See the example.

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

sqlalchemy-pretty-sql-0.4.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

sqlalchemy_pretty_sql-0.4.0-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sqlalchemy-pretty-sql-0.4.0.tar.gz.

File metadata

  • Download URL: sqlalchemy-pretty-sql-0.4.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

File hashes

Hashes for sqlalchemy-pretty-sql-0.4.0.tar.gz
Algorithm Hash digest
SHA256 89028233be44bb4efc1ff4fa4648c1e388e821c80a37ca8c653a413c751cbc4c
MD5 46308fb08eed6604b6f45c814d4eee8a
BLAKE2b-256 c3e23a15d7db83690eab20fb80465dccc6af3cebe1d00dafc7e8f9d390f54eb2

See more details on using hashes here.

File details

Details for the file sqlalchemy_pretty_sql-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sqlalchemy_pretty_sql-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

File hashes

Hashes for sqlalchemy_pretty_sql-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 750021ec0afe838a44983477be650c01e441f537ec3323cf2d573b53aa341954
MD5 0c883e84912179666863ab4445c363b3
BLAKE2b-256 85d7f68dc8af79a24b2cc581cc1cc35ba4fc8deca08363ef6f59a0aaf653d85a

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