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 hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page