This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Python’s standard library contains a pretty print module (pprint), but it’s output is in a very odd style. This project is a fairly straightforward fork which aim to create output suitable for use in python code with standard formatting.

I copied both pprint.py and test_pprint.py from the cpython (2.6) code base, and made the minimal changes to make things work, and all the tests pass. The result should be equally reliable as the stdlib pprint library.

>>> example_obj = {1:2, 3:4, 'range':range(3)}
>>> example_obj['range'].append(range(5))
>>> example_obj['range'].append(range(20))
>>> import buck.pprint
>>> buck.pprint.pprint(example_obj)
{
    1: 2,
    3: 4,
    'range': [
        0,
        1,
        2,
        [0, 1, 2, 3, 4],
        [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
    ],
}

This is how I’d format this object in my own code. Below is the formatting that the standard pprint gives. I believe you’ll agree that it’s not a style you’ve ever seen in real python code.

>>> import pprint
>>> pprint.pprint(example_obj)
{1: 2,
 3: 4,
 'range': [0,
           1,
           2,
           [0, 1, 2, 3, 4],
           [0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17,
            18,
            19]]}

History

0.0

2013-03-28 – Initial release.

Release History

Release History

0.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
buck.pprint-0.0.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Mar 2, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting