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.

Files for sqlalchemy-pretty-sql, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size sqlalchemy_pretty_sql-0.4.0-py2.py3-none-any.whl (3.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sqlalchemy-pretty-sql-0.4.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page