Skip to main content

A syntax highlighting prettier printer for Python 3.6+

Project description

Prettier_Printer: A syntax highlighting prettier printer for Python 3.6+

This library intends to print prettier for python code as simple and intuitive as possible.


Pretty print common Python values:

>>> from prettier_printer import pprint
>>> d = {
...    'example_tuple': (1, 2, 3, 4),
...    'word': 'Python is an interpreted programming language.',
...    'example dict': {'set': set([1, 2, 3, 4])}
>>> pprint(d, depth=10, indent=2, width=12, sort_dict_keys=True)

  'example dict': {
    'set': {1, 2, 3, 4}
  'example_tuple': (1, 2, 3, 4),
  'word': (
    'Python is an ',
    'interpreted ',
    'programming ',

Pretty print common Python values with syntax highlight:


$ pipenv install prettier_printer

Only Python 3.6 is supported.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

prettier_printer-0.1.4-py3-none-any.whl (4.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