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.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for prettierprint-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7537348be8dcc64be91f68991d3065fe1f18afa0f4b35d5095129ac01c166b31 |
|
MD5 | 58595e0cbe906168f19b2c7b49d31d88 |
|
BLAKE2b-256 | 5201c9ac54e8a23af6cf6aab02f8f0e41d32a72a3eeca51f8dd86f29075df72e |