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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prettierprint-1.1.2.tar.gz.
File metadata
- Download URL: prettierprint-1.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c0b43a1c5b74fe206b9dfc9063d84d0d467bb0ce3aa9e2dbd9d2b65a9fd6a15
|
|
| MD5 |
4d526549077257279934b3db780eb4b7
|
|
| BLAKE2b-256 |
bd71ea3ce07574e43ef56b72e07dff4db25d399d5537b136e6cfbdb25fc154bf
|
File details
Details for the file prettierprint-1.1.2-py3-none-any.whl.
File metadata
- Download URL: prettierprint-1.1.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cea3f8d69c7fe7f86b6f8fbd5f6cbc7dc7f2df13165dd8c9500b74f367de9255
|
|
| MD5 |
662f57562204643296e8980436a5f7ef
|
|
| BLAKE2b-256 |
b2ac2d25198aa82c3b3c90c46e878f876ce9131718b8b2d9e621a14ead9fe85b
|