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.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for prettierprint-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c03ee82c04d90caae009149e8fe0cb468c8ddb2e405f60a4adcb9ff8df55410 |
|
MD5 | 9a78003a9ee5393b2bff40e30411eae7 |
|
BLAKE2b-256 | 1d4e4d05bc6f049bbcd13f671584cd0ec95c1020fd14982befb4385f12fd0411 |