Skip to main content

make pretty json

Project description

pretty-json
===========

make pretty json.

Documentation: https://github.com/meganlkm/pretty-json


Installation
------------

.. code-block:: bash

pip install pretty-json


Environment Variables
---------------------

``PJSON_OUTPUT_STYLE``
.....................

**Default**: monokai

The pygments_ formatter used to make the json pretty.


Usage
-----

.. code-block:: python

from pretty_json import format_json

# format_json(content, style=OUTPUT_STYLE)
print format_json({'key': 'value'})


**See and sample the available styles**

.. code-block:: shell

python -c "from pretty_json import sample;sample('manni')"


Authors
-------

See contributors section on GitHub.


.. _pygments: http://pygments.org/docs/styles/

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-0.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

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