Last updated:
0 purchases
prettierprint 1.1.2
prettierprint
Python module for clean, human-readable printing of data structures.
Quickstart
Install
pip install prettierprint
Usage
Basic:
from prettierprint import print
some_data = {'key': 'value', 'list': [{'name': 'Hello', 'attr_A': 'foo', 'attr_B': 'bar'}, {'name': 'World', 'attr_A': 'bar', 'attr_B': 'foo'}]}
print(some_data)
Result:
key: value
list:
- name: Hello
attr_A: foo
attr_B: bar
- name: World
attr_A: bar
attr_B: foo
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.