JessicaSachs / blingjson

Python module to pretty print your json with color and
MIT License
0 stars 0 forks source link

blingjson

Python module to pretty print your json with syntax highlighting and :gem:

Usage

import blingjson, json

data = {"weather": [{"id": 800,"main": "Clear","description": "Sky is Clear","icon": "01d"}],"wind": {"speed": 2.66,"deg": 305.501}}

weather = json.dumps(data['weather'])

blingjson.pprint(weather)

Run it. Look at the colors.

blingjson.pprint(weather, colorize=False)
blingjson.pprint(weather, extra_bling=True)
blingjson.pprint(weather, extra_bling=True, short_code=':blue_heart:')