Skip to main content

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.

Source Distribution

pretty-json-1.2.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretty_json-1.2.0-py2-none-any.whl (4.0 kB view details)

Uploaded Python 2

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

Hashes for pretty-json-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6ca862881886254f699d2621dc1725ba0ae3fdc5cb0f02b99e8563399840f5c7
MD5 71b1635e2f680f9247f63359f475e9bc
BLAKE2b-256 cc7817c765ef0ef5fc70d59cee2a339dba8a8f37d952500789d6130eafb7a6ce

See more details on using hashes here.

File details

Details for the file pretty_json-1.2.0-py2-none-any.whl.

File metadata

File hashes

Hashes for pretty_json-1.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 25dea2c99bdcce5619539e53a17bade9d5990d70a0a0230f4b25b841d7688807
MD5 77de31fea04fb83d3b26b4380482406d
BLAKE2b-256 1445393abdf18560dface82142a03dc9b6291313c8416a624b6fdd18529dbd89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page