Skip to main content

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', '望麗出力']  # what a ugly print especially in japanese
>>> pp(target)   # now we can see pretty print with pp
[
    "want pretty printing",
    "望麗出力"
]
>>> target_dict = {'order': {'en':'pretty print', 'ja':'綺麗に出力せよ'}}
>>> print target_dict  # what a hell again
{'order': {'en': 'pretty print', 'ja': '綺麗に出力せよ'}}
>>> 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.1.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file prettyprint-0.1.1.tar.gz.

File metadata

File hashes

Hashes for prettyprint-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d02dd6258410b40eb86283211424b007038787fef45515aece05ff2e5f37e040
MD5 b62f6ae1d72bf175facf1d99e41fcfd6
BLAKE2b-256 e9c9b981196f78887e73a76952de8d3a800d943ac41a066307f9835ad3ff5661

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page