{ "info": { "author": "Buck Golemon", "author_email": "buck.golemon@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Topic :: Software Development :: Code Generators" ], "description": "Python's standard library contains a pretty print module (`pprint`), but it's\noutput is in a very odd style. This project is a fairly straightforward fork\nwhich aim to create output suitable for use in python code with standard\nformatting.\n\nI copied both pprint.py and test_pprint.py from the cpython (2.6) code base,\nand made the minimal changes to make things work, and all the tests pass. The\nresult should be equally reliable as the stdlib pprint library.\n\n\n >>> example_obj = {1:2, 3:4, 'range':range(3)}\n >>> example_obj['range'].append(range(5))\n >>> example_obj['range'].append(range(20))\n\n >>> import buck.pprint\n >>> buck.pprint.pprint(example_obj)\n {\n 1: 2,\n 3: 4,\n 'range': [\n 0,\n 1,\n 2,\n [0, 1, 2, 3, 4],\n [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],\n ],\n }\n\nThis is how I'd format this object in my own code. Below is the formatting that\nthe standard pprint gives. I believe you'll agree that it's not a style you've\never seen in real python code.\n\n >>> import pprint\n >>> pprint.pprint(example_obj)\n {1: 2,\n 3: 4,\n 'range': [0,\n 1,\n 2,\n [0, 1, 2, 3, 4],\n [0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19]]}\n\n\nHistory\n-------\n\n0.0\n+++++\n\n2013-03-28 -- Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bukzor/buck.pprint", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "buck.pprint", "package_url": "https://pypi.org/project/buck.pprint/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/buck.pprint/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bukzor/buck.pprint" }, "release_url": "https://pypi.org/project/buck.pprint/0.0/", "requires_dist": null, "requires_python": null, "summary": "A fork of the cpython's pprint which gives standard indentation.", "version": "0.0" }, "last_serial": 750670, "releases": { "0.0": [ { "comment_text": "", "digests": { "md5": "0380a98b0348510c2fde4db696f27c2d", "sha256": "f4f110d370262bf971269020d47dec5f795de334b6365fcf8fd610f9df1a2ec8" }, "downloads": -1, "filename": "buck.pprint-0.0.tar.gz", "has_sig": false, "md5_digest": "0380a98b0348510c2fde4db696f27c2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6436, "upload_time": "2013-03-02T00:38:02", "url": "https://files.pythonhosted.org/packages/d7/7a/f59450dbe6fd7fdab3bd40195358cd08ccb316da2fa47bfeb5b734896269/buck.pprint-0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0380a98b0348510c2fde4db696f27c2d", "sha256": "f4f110d370262bf971269020d47dec5f795de334b6365fcf8fd610f9df1a2ec8" }, "downloads": -1, "filename": "buck.pprint-0.0.tar.gz", "has_sig": false, "md5_digest": "0380a98b0348510c2fde4db696f27c2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6436, "upload_time": "2013-03-02T00:38:02", "url": "https://files.pythonhosted.org/packages/d7/7a/f59450dbe6fd7fdab3bd40195358cd08ccb316da2fa47bfeb5b734896269/buck.pprint-0.0.tar.gz" } ] }