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 Distribution
Built Distribution
Close
Hashes for sqlalchemy-pretty-sql-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89028233be44bb4efc1ff4fa4648c1e388e821c80a37ca8c653a413c751cbc4c |
|
MD5 | 46308fb08eed6604b6f45c814d4eee8a |
|
BLAKE2b-256 | c3e23a15d7db83690eab20fb80465dccc6af3cebe1d00dafc7e8f9d390f54eb2 |
Close
Hashes for sqlalchemy_pretty_sql-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 750021ec0afe838a44983477be650c01e441f537ec3323cf2d573b53aa341954 |
|
MD5 | 0c883e84912179666863ab4445c363b3 |
|
BLAKE2b-256 | 85d7f68dc8af79a24b2cc581cc1cc35ba4fc8deca08363ef6f59a0aaf653d85a |