Python module for clean, human-readable printing of data structures.
Project description
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
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
prettierprint-1.1.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for prettierprint-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cea3f8d69c7fe7f86b6f8fbd5f6cbc7dc7f2df13165dd8c9500b74f367de9255 |
|
MD5 | 662f57562204643296e8980436a5f7ef |
|
BLAKE2b-256 | b2ac2d25198aa82c3b3c90c46e878f876ce9131718b8b2d9e621a14ead9fe85b |