{ "info": { "author": "Michael Kitzan", "author_email": "mkitzan45@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Other Audience", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Database", "Topic :: Scientific/Engineering :: Visualization" ], "description": "Tabular Print\n=============\n\nTabular print prints a table that scales column widths to fit the data.\nWritten to mesh with the sqlite3 python module, specifically\ncursor.description (list comp-ed to only have the column labels), and\ncursor.fetchall(). Each row in the values list is treated as a row of\ntable data, and element order in the list corresponds to the order of\ncolumn labels. Use the 'transpose' argument if you data is formated with\neach row representing a column of data.\n\nExample\n=======\n\nA redacted example from a side project of mine (https://github.com/mkitzan/terminus):\n\n::\n\n *--------------------------------------*---------------*----------------*-----*------*--------*\n |Title |Author |Genre |Year |Pages |Type |\n *--------------------------------------*---------------*----------------*-----*------*--------*\n |Ellison Wonderland |Harlan Ellison |science fiction |1962 |191 |stories |\n |Dangerous Visions |Harlan Ellison |science fiction |1967 |598 |stories |\n |Love Ain't Nothing but Sex Misspelled |Harlan Ellison |science fiction |1968 |380 |stories |\n |Again, Dangerous Visions vol.1 |Harlan Ellison |science fiction |1972 |450 |stories |\n |Again, Dangerous Visions vol.2 |Harlan Ellison |science fiction |1972 |449 |stories |\n |Approaching Oblivion |Harlan Ellison |science fiction |1974 |164 |stories |\n |Deathbird Stories |Harlan Ellison |science fiction |1975 |347 |stories |\n |Stalking the Nightmare |Harlan Ellison |science fiction |1982 |301 |stories |\n |Angry Candy |Harlan Ellison |science fiction |1988 |324 |stories |\n |Slippage |Harlan Ellison |science fiction |1997 |359 |stories |\n *--------------------------------------*---------------*----------------*-----*------*--------*\n\nUsage\n=====\n\nFirst import the function 'table' from tabular print\n\n::\n\n from tabularprint import table\n\nFor a standard table use\n\n::\n\n table(col_labels, values)\n\nFor an augmented table use the expected arguments, and any combination\nof the five non-standard arguments\n\n::\n\n table(col_labels, values, header=\"Look at this table\", transpose=True, edge=\"#\", padding=2, printer=lambda row: outfile.write(row + \"\\n\"))\n\nNon-Standard Arguments\n======================\n\n- header (default None): will print whatever this string is above the\n table.\n\n- transpose (default False): will transpose the values argument if\n transpose=True. Helpful if a row in values corresponds to a column in\n the table rather than the expected values row corresponds to a table\n row (format of a sqlite3 fetchall call)\n\n- edge (default \"\\*\"): when a horizontal line (\"-\") intersects a\n vertical line (\"\\|\") in the table, an edge character is placed. By\n default a star is used, but, by including an argument for edge when\n table is called, you can augment what this character is.\n\n- padding (default 1): buffer determines the amount of whitespace\n between the end of the longest value in a column and that column's\n right vertical divider. Example: \\|example of buffer=1 \\|\n\n- printer (default print): allows user to write the output of\n tabular-print to a file, or call some function with each line of\n tabular-print's output as an argument. Each line of output is a\n string, so be sure your function takes that into account.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mkitzan/tabular-print", "keywords": "tabular-data sqlite3 python data table", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "tabular-print", "package_url": "https://pypi.org/project/tabular-print/", "platform": "", "project_url": "https://pypi.org/project/tabular-print/", "project_urls": { "Homepage": "https://github.com/mkitzan/tabular-print" }, "release_url": "https://pypi.org/project/tabular-print/1.0.7a1/", "requires_dist": null, "requires_python": "", "summary": "Lightweight, tabular data, printing module for Python.", "version": "1.0.7a1" }, "last_serial": 3715339, "releases": { "1.0.0a1": [ { "comment_text": "", "digests": { "md5": "892731bb112615f3fae364c230646271", "sha256": "e2b9ed88506509468e302f5118e0b46bea81eacea1ecc29d838e9585633d7ecc" }, "downloads": -1, "filename": "tabular_print-1.0.0a1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "892731bb112615f3fae364c230646271", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2343, "upload_time": "2018-03-28T17:27:58", "url": "https://files.pythonhosted.org/packages/12/d1/35785926c4db46ca9981505bbd9f22558b2def20454d457ca0a99870304f/tabular_print-1.0.0a1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e99064625317c0ada3948e69924158b0", "sha256": "fd2a9c4986abf642f72439a0331aec2e5e5a304d1b2261f9136360e7d307c949" }, "downloads": -1, "filename": "tabular-print-1.0.0a1.tar.gz", "has_sig": false, "md5_digest": "e99064625317c0ada3948e69924158b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2405, "upload_time": "2018-03-28T17:27:59", "url": "https://files.pythonhosted.org/packages/0a/2f/6b2d2148f47887b0c2542a238a3f92119f363228c8d8e5c085ba2a0da3da/tabular-print-1.0.0a1.tar.gz" } ], "1.0.1a1": [ { "comment_text": "", "digests": { "md5": "7df366c9cab82248eef060cd99f5f905", "sha256": "ecd50b0c189d8a139b9f670e97a4a3719c3bb3e898501c4faf924a85f468ffbd" }, "downloads": -1, "filename": "tabular_print-1.0.1a1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7df366c9cab82248eef060cd99f5f905", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2344, "upload_time": "2018-03-28T17:31:44", "url": "https://files.pythonhosted.org/packages/6f/75/b8b37044c536cdfe9432a416af93dff15a3a086f4099e4c7389e502afa03/tabular_print-1.0.1a1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14f746a0bd4f87919a62f1ee1a230656", "sha256": "33edaf7094ca447dd7c52b7e6a0fe42448196053953a74809cae95ddbcf1562e" }, "downloads": -1, "filename": "tabular-print-1.0.1a1.tar.gz", "has_sig": false, "md5_digest": "14f746a0bd4f87919a62f1ee1a230656", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2445, "upload_time": "2018-03-28T17:31:45", "url": "https://files.pythonhosted.org/packages/a9/66/776c346d3409c9b454777efc35ceaec30d644f74473f660bcfe03a89cca0/tabular-print-1.0.1a1.tar.gz" } ], "1.0.2a1": [ { "comment_text": "", "digests": { "md5": "da33393ac59c6823e534f0876937edd0", "sha256": "925f0a01d5be823386f248e0f2489bafba755fbdd7b760d52a52ced2c0799d79" }, "downloads": -1, "filename": "tabular_print-1.0.2a1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "da33393ac59c6823e534f0876937edd0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4896, "upload_time": "2018-03-28T17:33:06", "url": "https://files.pythonhosted.org/packages/c6/b2/d8f9383d5e297282c5278678e10e7967b08f800d53242aa3ca3cf758ddbb/tabular_print-1.0.2a1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83404c94d6a892214c003fc7868f07c0", "sha256": "f6d523a43b7216e6d64f5af40cb8af91e3bd49e68a15baf26afa6afb370091eb" }, "downloads": -1, "filename": "tabular-print-1.0.2a1.tar.gz", "has_sig": false, "md5_digest": "83404c94d6a892214c003fc7868f07c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2738, "upload_time": "2018-03-28T17:33:07", "url": "https://files.pythonhosted.org/packages/62/87/3d208d8fc39b5c7504c38c4492c89ece4bc06da611db6585e194b543826f/tabular-print-1.0.2a1.tar.gz" } ], "1.0.3a1": [ { "comment_text": "", "digests": { "md5": "a0751edbe1a97424ba4eba349127245d", "sha256": "bfb4961ba7c3c0c4efd387f96bcd31ae86522ba0d68d408db81a2be976a07bcb" }, "downloads": -1, "filename": "tabular_print-1.0.3a1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a0751edbe1a97424ba4eba349127245d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4897, "upload_time": "2018-03-28T17:37:04", "url": "https://files.pythonhosted.org/packages/bb/84/836e93c3ac012d8746dd32104910a43b11700c8abd51b6dd4f0775681895/tabular_print-1.0.3a1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14720813edf06d568a7d5f568ae8ba48", "sha256": "e40720208c37f1edb3718d70cd794b08727b65136ef5c4894970b797c589e064" }, "downloads": -1, "filename": "tabular-print-1.0.3a1.tar.gz", "has_sig": false, "md5_digest": "14720813edf06d568a7d5f568ae8ba48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2756, "upload_time": "2018-03-28T17:37:05", "url": "https://files.pythonhosted.org/packages/69/cc/282b5df46f3d25f4dc0d5cd29342e31c3b4d3c18559bb32b7e7fe221a8d8/tabular-print-1.0.3a1.tar.gz" } ], "1.0.4a1": [ { "comment_text": "", "digests": { "md5": "f0eb9cdfc5091bea3bbf772cea05a563", "sha256": "a99c04a2ee7ad0850d8dca9e83f2cca4643fab17709284720b3eba80605c17e4" }, "downloads": -1, "filename": "tabular_print-1.0.4a1-py3-none-any.whl", "has_sig": false, "md5_digest": "f0eb9cdfc5091bea3bbf772cea05a563", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4893, "upload_time": "2018-03-28T19:13:09", "url": "https://files.pythonhosted.org/packages/55/9a/46081dcb696fc94d9ed9db7fac25249d662d149bf8087809f4f87790b5a9/tabular_print-1.0.4a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8229c57dcc94866e6b1cee7cbbe9750", "sha256": "5b85d36c827b0d10ab4643ae36de82e6ee6034dfb7b040e7576cdebd82cb739b" }, "downloads": -1, "filename": "tabular-print-1.0.4a1.tar.gz", "has_sig": false, "md5_digest": "e8229c57dcc94866e6b1cee7cbbe9750", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2748, "upload_time": "2018-03-28T19:13:10", "url": "https://files.pythonhosted.org/packages/06/a7/d8b2c1decd7d3619fce3eb5c54f3bbfd3d1bb5607b5f3ed364d3986fd9f4/tabular-print-1.0.4a1.tar.gz" } ], "1.0.5a1": [ { "comment_text": "", "digests": { "md5": "ea389690f7151d7eaeb2db31e30c28fc", "sha256": "549a2b9bf6cc026cc9881ad3f96908222b18836d500a3c0db00d30d052de7b84" }, "downloads": -1, "filename": "tabular_print-1.0.5a1-py3-none-any.whl", "has_sig": false, "md5_digest": "ea389690f7151d7eaeb2db31e30c28fc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6244, "upload_time": "2018-03-28T20:41:51", "url": "https://files.pythonhosted.org/packages/1a/e8/ae0cf81c9bcfe10217a4853eb3daefe0befb065377f3ad2a0fb7f5064bf2/tabular_print-1.0.5a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "965c551680e3a1c0e014fc9db2ae3c25", "sha256": "cfcbac3128b7755173542de8bf69f1beb3ea56350dd5ba85a0a6d426fde519ed" }, "downloads": -1, "filename": "tabular-print-1.0.5a1.tar.gz", "has_sig": false, "md5_digest": "965c551680e3a1c0e014fc9db2ae3c25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3675, "upload_time": "2018-03-28T20:41:53", "url": "https://files.pythonhosted.org/packages/c7/98/045810239f3073f65d0ee1b70d3b7d8da7e393cc7ec17fd3aea65c5c9bb9/tabular-print-1.0.5a1.tar.gz" } ], "1.0.6a1": [ { "comment_text": "", "digests": { "md5": "48d2afbb4c081e50b38c4ed5ca58e7ff", "sha256": "99acd51e6ce45f17885bb1a46f90357b01bb4c45655a11a6907c2b8575a46fa9" }, "downloads": -1, "filename": "tabular_print-1.0.6a1-py3-none-any.whl", "has_sig": false, "md5_digest": "48d2afbb4c081e50b38c4ed5ca58e7ff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4895, "upload_time": "2018-03-28T21:15:29", "url": "https://files.pythonhosted.org/packages/32/48/05b67164348c1a091df40c9c3a067a5b2258172eb0b22783a6e6eaab1147/tabular_print-1.0.6a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "086702645ff6223b53d1b0ce26be9723", "sha256": "8ecfe4557e554bab8bcc5034e8f5bdb7a9c275f5b61192058a36ef2a3ca9803e" }, "downloads": -1, "filename": "tabular-print-1.0.6a1.tar.gz", "has_sig": false, "md5_digest": "086702645ff6223b53d1b0ce26be9723", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2759, "upload_time": "2018-03-28T21:15:29", "url": "https://files.pythonhosted.org/packages/7c/6a/f74bc41b4bbefd0a89be592cd8a4951e2af2667508abdbd56f64079d5412/tabular-print-1.0.6a1.tar.gz" } ], "1.0.7a1": [ { "comment_text": "", "digests": { "md5": "5ac19aa4659cfd444fc6e8cf533dc071", "sha256": "07dbfe5bbcda6813bb82e7aaf56bada292b906365ee094bf10f399d1ad1fbf3d" }, "downloads": -1, "filename": "tabular_print-1.0.7a1-py3-none-any.whl", "has_sig": false, "md5_digest": "5ac19aa4659cfd444fc6e8cf533dc071", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8831, "upload_time": "2018-03-28T21:53:58", "url": "https://files.pythonhosted.org/packages/50/d3/4dc27517feb80e9830c84ed8e7fe3e2c1f2d7c6d01f0d7acee4ecaa118ca/tabular_print-1.0.7a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5dc3c6b7524337b1fd6e7ef3846ec22", "sha256": "110e0c3da533b226ffc9ffdda05ba311a8be851f2c62adeddb212e5017ea3517" }, "downloads": -1, "filename": "tabular-print-1.0.7a1.tar.gz", "has_sig": false, "md5_digest": "e5dc3c6b7524337b1fd6e7ef3846ec22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3728, "upload_time": "2018-03-28T21:53:59", "url": "https://files.pythonhosted.org/packages/c4/da/41d3d810413de140d4191f9d5edcfefd6b5ce376bce7dfde4a54e170992c/tabular-print-1.0.7a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ac19aa4659cfd444fc6e8cf533dc071", "sha256": "07dbfe5bbcda6813bb82e7aaf56bada292b906365ee094bf10f399d1ad1fbf3d" }, "downloads": -1, "filename": "tabular_print-1.0.7a1-py3-none-any.whl", "has_sig": false, "md5_digest": "5ac19aa4659cfd444fc6e8cf533dc071", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8831, "upload_time": "2018-03-28T21:53:58", "url": "https://files.pythonhosted.org/packages/50/d3/4dc27517feb80e9830c84ed8e7fe3e2c1f2d7c6d01f0d7acee4ecaa118ca/tabular_print-1.0.7a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5dc3c6b7524337b1fd6e7ef3846ec22", "sha256": "110e0c3da533b226ffc9ffdda05ba311a8be851f2c62adeddb212e5017ea3517" }, "downloads": -1, "filename": "tabular-print-1.0.7a1.tar.gz", "has_sig": false, "md5_digest": "e5dc3c6b7524337b1fd6e7ef3846ec22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3728, "upload_time": "2018-03-28T21:53:59", "url": "https://files.pythonhosted.org/packages/c4/da/41d3d810413de140d4191f9d5edcfefd6b5ce376bce7dfde4a54e170992c/tabular-print-1.0.7a1.tar.gz" } ] }