Skip to main content

pretty-json

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.

Metadata

Release files for pretty-json 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretty-json 1.2.0
File Size Uploaded
pretty-json-1.2.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pretty-json 1.2.0
File Interpreter ABI Platform
pretty_json-1.2.0-py2-none-any.whl Python 2 none any Details

Total release size: 6.5 kB

Release files / pretty-json-1.2.0.tar.gz

Download URL pretty-json-1.2.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6ca862881886254f699d2621dc1725ba0ae3fdc5cb0f02b99e8563399840f5c7
BLAKE2b-256 checksum
How to use checksums
cc7817c765ef0ef5fc70d59cee2a339dba8a8f37d952500789d6130eafb7a6ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pretty_json-1.2.0-py2-none-any.whl

Download URL pretty_json-1.2.0-py2-none-any.whl
Size 4.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
25dea2c99bdcce5619539e53a17bade9d5990d70a0a0230f4b25b841d7688807
BLAKE2b-256 checksum
How to use checksums
1445393abdf18560dface82142a03dc9b6291313c8416a624b6fdd18529dbd89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.0.2

1 release file

1.0.1

1 release file

0.0.3

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page