{ "info": { "author": "Hadi Sinaee, Sharif University of Technology", "author_email": "sinaee@ce.sharif.ir", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "Python-PrettyPrintDictionary\n============================\n\nPrints Dictionary key-values in a human readable manner.\n\n

What it is?

\nSuppose you have the following dictionary:\n```\ndict_1 = {'a': 0, '1': {1: 'c', 2: 'd'}, '2': [1, 2, 3, 4, 5, 6]}\n```\nWhen you print this on the console you will have this:\n```\n>>> {'a': 0, '1': {1: 'c', 2: 'd'}, '2': [1, 2, 3, 4, 5, 6]}\n```\nWhat if you have a very larger dictionary of things that each key has an iterable object, i.e dictionary, list, ...? How does it look like?\n\nSuppose you have the following dictionary:\n```\ndict_1 = {'a': 0, '1': {1: {'abc': [1, 2, 3, 4, 5, 6], 'efg': [7, 8, 9, 10, 100]},\n 2: {'1': {1: 'abc', 2: 'efg'}, '2': {3: 'abc'}}}, '2': [1, 2, 3, 4, 5, 6]}\n```\nif you print if normally it will be this:\n```\n{'a': 0, '1': {1: {'abc': [1, 2, 3, 4, 5, 6], 'efg': [7, 8, 9, 10, 100]}, 2: {'1': {1: 'abc', 2: 'efg'}, '2': {3: 'abc'}}}, '2': [1, 2, 3, 4, 5, 6]}\n```\nBut if you use this lib it would be this(this is PyCharm Console):\n\n\n\n

Usage

\n\nSimply import the PrettyDict from pretty_dictionary module from pretty_print_dictionary package\n```\nfrom pretty_print_dictionary.pretty_dictionary import PrettyDict\n```\n\nCreate your own dictionary.\n```\nmy_dictionary = {0:[1,2,3], 1:['a','b']}\n```\n\nCreate a class of PrettyDict and set your dictionary as its argument.\n```\npd = PrettyDict(my_dictionary)\n```\n\nCall the ppd(Pretty Print Dictionary) method to print the dictionary\n```\npd.ppd()\n```\n\n

Keywords

\nthere is 4 keywords for this module:\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\nkeyword\n\ncomments\n\nvalue(s)\n
fill_char_widthspecifies number of chars to be indented for each level. int
fill_charspecifies the char to be indented for each level. str
orderspecifies the color style for output.'full', 'even', 'random'
show_levelprints the level number next to the key element'show', 'hide'
", "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/kinghadi/Python-PrettyPrintDictionary", "keywords": "dict dictionary pretty print", "license": "GNU GPL", "maintainer": null, "maintainer_email": null, "name": "pretty_print_dictionary", "package_url": "https://pypi.org/project/pretty_print_dictionary/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pretty_print_dictionary/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/kinghadi/Python-PrettyPrintDictionary" }, "release_url": "https://pypi.org/project/pretty_print_dictionary/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "A tool for showing dictionary objects in a more human-readable format.", "version": "1.1.1" }, "last_serial": 1215473, "releases": { "1.1.1": [ { "comment_text": "", "digests": { "md5": "ea3c9dbe136a64715a20c697b885bbc0", "sha256": "853d42de2e7c555d5fc8dc514d7135a6362e4de7aaf525851079605d5ff7b522" }, "downloads": -1, "filename": "pretty_print_dictionary-1.1.1-py2.7.egg", "has_sig": false, "md5_digest": "ea3c9dbe136a64715a20c697b885bbc0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6540, "upload_time": "2014-09-06T22:23:18", "url": "https://files.pythonhosted.org/packages/ce/8a/9888415f72320c3f3dda6da7eb246680c27fea60044c8906a88a071c8db4/pretty_print_dictionary-1.1.1-py2.7.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea3c9dbe136a64715a20c697b885bbc0", "sha256": "853d42de2e7c555d5fc8dc514d7135a6362e4de7aaf525851079605d5ff7b522" }, "downloads": -1, "filename": "pretty_print_dictionary-1.1.1-py2.7.egg", "has_sig": false, "md5_digest": "ea3c9dbe136a64715a20c697b885bbc0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6540, "upload_time": "2014-09-06T22:23:18", "url": "https://files.pythonhosted.org/packages/ce/8a/9888415f72320c3f3dda6da7eb246680c27fea60044c8906a88a071c8db4/pretty_print_dictionary-1.1.1-py2.7.egg" } ] }