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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for sqlalchemy_pretty_sql-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91248e37920cdd19c7a19a7b374b0687d7b61036e3ada977cd7fb19d5f42fee3 |
|
MD5 | b4322e5d5e0a68d120f89ac197b13973 |
|
BLAKE2b-256 | 0c6858ce494759eab4175381b363459d52c87c70ff72320f89f960cf38246a00 |