Skip to main content

Beautifully print Python data

Project description


Beautiful print for Python.


Python's pprint is supposed to be a "Data pretty printer" and claims the following:

provides a capability to "pretty-print" arbitrary Python data structures

This is simply not true, because it will choke on "arbitrary Python data".

It's not even good at pretty-printing, since the indentation often goes way too far to the right, and in general makes things unreadable.

bprint aims at solving both of these issues.


Thanks to Python's dynamic nature, we can query the attributes of any object, and thus beautifully print them, even if they don't define __str__ (which is in fact not queried at all for custom classes).

Installation is done with pip install beauty-print.


bprint will help you beautifully print your objects, and is also easily customizable, with a lot of freedom.

The pip package is called beauty-print because bprint was already taken, unfortunately.


During one of the many moments when I'm procrastinating. You can install it any time you want though!


In Python 3.6 and above, and PyPi as beauty-print.

How much?

Free, as in beer and freedom!


Lonami is the primary author and thanks also to udf, but more contributors are welcome!

Project details

Download files

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

Files for beauty-print, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size beauty_print-0.6.0-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size beauty-print-0.6.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page