Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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')"

Authors

See contributors section on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pretty_json-1.2.0-py2-none-any.whl (4.0 kB) Copy SHA256 hash SHA256 Wheel py2 Jan 22, 2018
pretty-json-1.2.0.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Jan 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page