Skip to main content

Beautifully print Python data

Project description

bprint

Beautiful print for Python.

Why?

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.

How?

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.

What?

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.

When?

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

Where?

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

How much?

Free, as in beer and freedom!

Who?

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.

Source Distribution

beauty-print-0.4.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file beauty-print-0.4.0.tar.gz.

File metadata

  • Download URL: beauty-print-0.4.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for beauty-print-0.4.0.tar.gz
Algorithm Hash digest
SHA256 17be5b12e6ba2972d1ef5477e6bf3f9544bdb2a59fbd3cfbb459922eac4a1f86
MD5 a382ebc8b77001c735c891e16fb0db94
BLAKE2b-256 8a23e76dcd47e5284856dbe68c6bf2108f21980b76defef1f4afa9b2b4dfb9c1

See more details on using hashes here.

Supported by

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