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 details)
Built Distribution
File details
Details for the file pretty-json-1.2.0.tar.gz
.
File metadata
- Download URL: pretty-json-1.2.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ca862881886254f699d2621dc1725ba0ae3fdc5cb0f02b99e8563399840f5c7 |
|
MD5 | 71b1635e2f680f9247f63359f475e9bc |
|
BLAKE2b-256 | cc7817c765ef0ef5fc70d59cee2a339dba8a8f37d952500789d6130eafb7a6ce |
File details
Details for the file pretty_json-1.2.0-py2-none-any.whl
.
File metadata
- Download URL: pretty_json-1.2.0-py2-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25dea2c99bdcce5619539e53a17bade9d5990d70a0a0230f4b25b841d7688807 |
|
MD5 | 77de31fea04fb83d3b26b4380482406d |
|
BLAKE2b-256 | 1445393abdf18560dface82142a03dc9b6291313c8416a624b6fdd18529dbd89 |