Skip to main content

A Python library for pretty printing Python data structures

Project description

pretty_python

Standard Python Shim for IPython pretty library

See lib.pretty Docs for full api.

Only differnce to use this is to import as follows:

from pretty_python import pretty, pprint

d = dict(Foo=[1,2,3], Bar={'a':1, 'b':2, 'c':3})

print(f"my dict: {pretty(d)}")

# -or-

pprint(d)

If running within IPython / Jupyter Notebook, it will load the builtin pretty library, otherwise it will load this fork which removes IPython dependency

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

pretty_python-0.1.0.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

pretty_python-0.1.0-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

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