make pretty json
Project description
make pretty json.
Documentation: https://github.com/devstuff-io/pretty-json
Installation
pip install pretty-json
Environment Variables
PJSON_OUTPUT_STYLE
Default: monokai
The pygments formatter used to make the json pretty.
Usage
from pretty_json import format_json
# format_json(content, style=OUTPUT_STYLE)
print format_json({'key': 'value'})
See and sample the available styles
python -c "from pretty_json import sample;sample('manni')"
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
pretty-json-1.2.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for pretty_json-1.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25dea2c99bdcce5619539e53a17bade9d5990d70a0a0230f4b25b841d7688807 |
|
MD5 | 77de31fea04fb83d3b26b4380482406d |
|
BLAKE2b-256 | 1445393abdf18560dface82142a03dc9b6291313c8416a624b6fdd18529dbd89 |