{ "info": { "author": "Abtin Gramian", "author_email": "abtin.gramian@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Table Printer\n=============\n\nDescription\n-----------\n\nPrint a list of python dicts as an organized table.\n\nThe code is mostly copied from\n`this `__ Stack Overflow comment\nwith the following additions: - customization of the top and bottom line\ncharacters - customization of the alignment ('left' or 'right') -\nautomatic truncation of text that is longer than the column width with\nellipses ('...') - ability to receive a separate data set that will be\nprinted as a totals row at the bottom of the table by passing optional\nargument\n\nInstallation\n------------\n\n``pip install table_printer``\n\nUsage\n-----\n\n::\n\n from table_printer import TablePrinter\n\n fmt = [\n ('Title', 'title', 50, 'left'),\n ('Description', 'description', 50, 'right'),\n ]\n data = [{'title': 'Hello', 'description': 'World'}]\n totals = {'title': 'TOTAL', '1 title'}\n print TablePrinter(fmt, sep='|', ul='=', tl='-', bl='_')(data, totals)\n\nOutput\n~~~~~~\n\n::\n\n --------------------------------------------------|--------------------------------------------------\n Title | Description\n ==================================================|==================================================\n Hello | World\n ==================================================|==================================================\n TOTAL | 1 title\n __________________________________________________|__________________________________________________\n\n*See table\\_printer/table\\_printer.py for additional arguments and\ndetails.*", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/agramian/table-printer/tarball/v0.1.4", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/agramian/table-printer", "keywords": "table,display,print,tabular,data", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "table_printer", "package_url": "https://pypi.org/project/table_printer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/table_printer/", "project_urls": { "Download": "https://github.com/agramian/table-printer/tarball/v0.1.4", "Homepage": "https://github.com/agramian/table-printer" }, "release_url": "https://pypi.org/project/table_printer/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Python Table Printer", "version": "0.1.4" }, "last_serial": 1743014, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "00fb87741fcef471475d35d4ca6afdde", "sha256": "a181beaa34621636863e59c080dc3f4a381ae2ae0b71b6f97d901bcc10ea040b" }, "downloads": -1, "filename": "table_printer-0.1.tar.gz", "has_sig": false, "md5_digest": "00fb87741fcef471475d35d4ca6afdde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1459, "upload_time": "2015-09-28T18:30:53", "url": "https://files.pythonhosted.org/packages/6e/37/9a913c4ce53ff4669e348f084bfd76d6637d3932d8d44473190b4061723e/table_printer-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "84f4a2b0bc32f8d88333055537e9f393", "sha256": "d2e37991912d408ce064a005409754a54ee25c5bffcba2c1d45efd5678ee23f3" }, "downloads": -1, "filename": "table_printer-0.1.1.tar.gz", "has_sig": false, "md5_digest": "84f4a2b0bc32f8d88333055537e9f393", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2052, "upload_time": "2015-09-28T22:56:31", "url": "https://files.pythonhosted.org/packages/57/b7/4b343e71c5d0a0972882ecc25a61ec8cc69c55fcb39529cd0058a7bad469/table_printer-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "4c2c52806f28296d50457c3f1e56c03e", "sha256": "2af89b1d8732ac33c7fd68b8be6d712709d013f85944a878f3575cb09b1cc24b" }, "downloads": -1, "filename": "table_printer-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4c2c52806f28296d50457c3f1e56c03e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2827, "upload_time": "2015-09-28T23:09:14", "url": "https://files.pythonhosted.org/packages/5d/fa/d9eff2e745125abc7f81ca1e56c6ae77cfbeba41986eb0ea2052a819b572/table_printer-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c04212fe84073aa13b5d8ae095adfa3e", "sha256": "4fa97eac9f842690860ee80665693e243c4ff3e82769a490eba0ed133110c5f2" }, "downloads": -1, "filename": "table_printer-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c04212fe84073aa13b5d8ae095adfa3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2689, "upload_time": "2015-09-28T23:13:22", "url": "https://files.pythonhosted.org/packages/1b/8a/002320d79ebbdc27dca6c1a97255921ffed5bcee3c07a3f8cc3a6bd22d3a/table_printer-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "0ba5c35727d3572b4ebd76cdea4585ee", "sha256": "f45441cad49463e40b00f414488ed1123b360b96bfba89abeaef2735d9185ea8" }, "downloads": -1, "filename": "table_printer-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0ba5c35727d3572b4ebd76cdea4585ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3412, "upload_time": "2015-09-28T23:51:58", "url": "https://files.pythonhosted.org/packages/0f/34/12baad20cd7dfa3f5fb36b6c967033745375d881373f9b6eb1eb0495ac93/table_printer-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0ba5c35727d3572b4ebd76cdea4585ee", "sha256": "f45441cad49463e40b00f414488ed1123b360b96bfba89abeaef2735d9185ea8" }, "downloads": -1, "filename": "table_printer-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0ba5c35727d3572b4ebd76cdea4585ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3412, "upload_time": "2015-09-28T23:51:58", "url": "https://files.pythonhosted.org/packages/0f/34/12baad20cd7dfa3f5fb36b6c967033745375d881373f9b6eb1eb0495ac93/table_printer-0.1.4.tar.gz" } ] }