prettyprint print list/dict/tuple object prettily
Project description
This module privides pretty printing for list/dict/tuple python object.
Simple example of usage is followings
>>> from prettyprint import pp >>> target = ['want pretty printing', '望麗出力'] >>> print target ['want pretty printing', '\xe6\x9c\x9b\xe9\xba\x97\xe5\x87\xba\xe5\x8a\x9b'] # what a ugly print especially in japanese >>> pp(target) # now we can see pretty print with pp [ "want pretty printing", "望麗出力" ] >>> target_dict = {'order': {'en':'print prettily', 'ja':'綺麗に出力せよ'}} >>> print target_dict # what a hell again {'order': {'en': 'print prettily', 'ja': '\xe7\xb6\xba\xe9\xba\x97\xe3\x81\xab\xe5\x87\xba\xe5\x8a\x9b\xe3\x81\x9b\xe3\x82\x88'}} >>> pp(target_dict) # pp again { "order": { "en": "print prettily", "ja": "綺麗に出力せよ" } }
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
prettyprint-0.1.3.tar.gz
(2.0 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
prettyprint-0.1.3-py2.6.egg
(4.3 kB
view details)
File details
Details for the file prettyprint-0.1.3.tar.gz.
File metadata
- Download URL: prettyprint-0.1.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a5affaccaf671829f7807dfc3c3e7a8c025ade06fad8e6af5aa86a3c2abbc28
|
|
| MD5 |
357d73524e8ad00fe43b1828c9fed721
|
|
| BLAKE2b-256 |
e77f93751f653ccb31594ec016efb6a8e1508fc9af0e3ee0925b9ddb5c84c868
|
File details
Details for the file prettyprint-0.1.3-py2.6.egg.
File metadata
- Download URL: prettyprint-0.1.3-py2.6.egg
- Upload date:
- Size: 4.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76085c258462cbab098741690eb79ad76f6a67fff0963b46ac0f095e37b0c78d
|
|
| MD5 |
5621bf17c04252c157a13bd91ae9dabf
|
|
| BLAKE2b-256 |
90d27ec7ff4f5a7358974f631c9a17289fb6380182a0ee42dee86d111a8d3071
|