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.0.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for prettierprint-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a858068ab9f77105d5eb74a430a7c522ea03a6abe59efe3213893172c5b16b |
|
MD5 | 4eb699a87eee8afec28bb798e52f01f7 |
|
BLAKE2b-256 | 2577597d02862f1fa972ef2151a8d97f76e7b6dd74238e135ffac040ae3f512a |