{ "info": { "author": "Nico Schl\u00f6mer", "author_email": "nico.schloemer@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Topic :: Terminals", "Topic :: Utilities" ], "description": "
The tables have termed.
\n\n\n[](https://pypi.org/project/termtables)\n[](https://pypi.org/pypi/termtables/)\n[](https://github.com/nschloe/termtables)\n[](https://pypistats.org/packages/termtables)\n\n[](https://github.com/nschloe/termtables/actions?query=workflow%3Aci)\n[](https://codecov.io/gh/nschloe/termtables)\n[](https://lgtm.com/projects/g/nschloe/termtables)\n[](https://github.com/psf/black)\n\n\ntermtables is a lightweight Python 3 package for pretty-printing tables on the command\nline. Install with\n```\npip install termtables\n```\nThe code\n```python\nimport termtables as tt\nimport numpy\n\nnumpy.random.seed(0)\ndata = numpy.random.rand(5, 2)\n\ntt.print(data)\n# tt.to_string(data) returns the string\n```\nproduces\n\n\n\nYou can control border style, padding, alignment, and various other attributes. For\nexample,\n```python\nimport termtables as tt\n\nheader = [\"a\", \"bb\", \"ccc\"]\ndata = [\n [1, 2, 3], [613.23236243236, 613.23236243236, 613.23236243236]\n]\n\ntt.print(\n data,\n header=header,\n style=tt.styles.markdown,\n padding=(0, 1),\n alignment=\"lcr\"\n)\n```\nproduces\n\n```\n| a | bb | ccc |\n|-----------------|-----------------|-----------------|\n| 1 | 2 | 3 |\n| 613.23236243236 | 613.23236243236 | 613.23236243236 |\n```\nwhich is useful for copy-pasting into websites that support Markdown (like GitHub).\n\nSee\n[`test/test_termtables.py`](https://github.com/nschloe/termtables/blob/master/test/test_termtables.py)\nfor more examples.\n\nIf the styles in `termtables.styles`\n```\nthin\nthin_thick\nthin_double\nrounded\nrounded_thick\nrounded_double\nthick\nthick_thin\ndouble\ndouble_thin\nbooktabs\n\nascii_thin\nascii_thin_double\nascii_double\nascii_double_thin\nascii_booktabs\n\nmarkdown\n```\naren't good enough for you, simply provide your own\nstyle as a string of length 11 or 15 (the extra 4 including header-separating\ncharacters). For example\n```python\nimport termtables as tt\n\nheader = [\"a\", \"bb\", \"ccc\"]\ndata = [\n [1, 2, 3], [613.23236243236, 613.23236243236, 613.23236243236]\n]\n\ntt.print(\n data,\n header=header,\n style=\"x0123456789abcd\"\n)\n```\nproduces\n\n```\n1xxxxxxxxxxxxxxxxx7xxxxxxxxxxxxxxxxx7xxxxxxxxxxxxxxxxx2\n0 a 0 bb 0 ccc 0\nabbbbbbbbbbbbbbbbbcbbbbbbbbbbbbbbbbbcbbbbbbbbbbbbbbbbbd\n0 1 0 2 0 3 0\n5xxxxxxxxxxxxxxxxx9xxxxxxxxxxxxxxxxx9xxxxxxxxxxxxxxxxx6\n0 613.23236243236 0 613.23236243236 0 613.23236243236 0\n3xxxxxxxxxxxxxxxxx8xxxxxxxxxxxxxxxxx8xxxxxxxxxxxxxxxxx4\n```\n\n\n### Testing\n\nTo run the termtables unit tests, check out this repository and type\n```\ntox\n```\n\n### Other software for terminal tables\n\n * [Rich](https://github.com/willmcgugan/rich)\n\n### License\nThis software is published under the [GPL-3.0\nlicense](https://www.gnu.org/licenses/gpl-3.0.en.html).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nschloe/termtables", "keywords": "", "license": "GPL-3.0-or-later", "maintainer": "", "maintainer_email": "", "name": "termtables", "package_url": "https://pypi.org/project/termtables/", "platform": "", "project_url": "https://pypi.org/project/termtables/", "project_urls": { "Code": "https://github.com/nschloe/termtables", "Funding": "https://github.com/sponsors/nschloe", "Homepage": "https://github.com/nschloe/termtables", "Issues": "https://github.com/nschloe/termtables/issues" }, "release_url": "https://pypi.org/project/termtables/0.2.4/", "requires_dist": [ "importlib-metadata ; python_version < \"3.8\"" ], "requires_python": ">=3.6", "summary": "Pretty tables in the terminal", "version": "0.2.4", "yanked": false, "yanked_reason": null }, "last_serial": 10485359, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9ed2ef25c78d72a1e2e8beb92b36be9f", "sha256": "517e49cb2012f3d763738d5a7cd30ca7de7fe2bdbff039e0a90a228f5d7b1ec9" }, "downloads": -1, "filename": "termtables-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9ed2ef25c78d72a1e2e8beb92b36be9f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5979, "upload_time": "2019-07-07T19:02:32", "upload_time_iso_8601": "2019-07-07T19:02:32.249211Z", "url": "https://files.pythonhosted.org/packages/9c/ea/38af3736093336f7749e14da30f5517235f0d4e1ba380529b3118450ff50/termtables-0.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "f596e8d6d3f7f832ed27e9197141b008", "sha256": "b01303c4f4e304d4c2fe4dc649a12ca50de48699aaace955fa7cb43fb030d9aa" }, "downloads": -1, "filename": "termtables-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f596e8d6d3f7f832ed27e9197141b008", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6238, "upload_time": "2019-07-07T19:02:34", "upload_time_iso_8601": "2019-07-07T19:02:34.660768Z", "url": "https://files.pythonhosted.org/packages/80/e8/be3240251a96c58cab8e0d9a34cd71215c1abecb1481d5a9b79b71531617/termtables-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1dc494be4435e0ad3073b0caf6c263a8", "sha256": "0fd321f7f478001f824896b4dbc5af0cf296ecf3c4aa450018cdcd31b4880b6e" }, "downloads": -1, "filename": "termtables-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1dc494be4435e0ad3073b0caf6c263a8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 6113, "upload_time": "2019-10-29T17:32:17", "upload_time_iso_8601": "2019-10-29T17:32:17.382551Z", "url": "https://files.pythonhosted.org/packages/db/18/c414bfd40694d79c88fc5d7fe2cd7dbe0805aae644ded248108999c0bc83/termtables-0.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "860c483649768c1ca9cd935c100ab05f", "sha256": "762ba718cae224917fd8e1eda5cbfb33027ab6c86cfb9dd676e35f0c6516b4bf" }, "downloads": -1, "filename": "termtables-0.1.1.tar.gz", "has_sig": false, "md5_digest": "860c483649768c1ca9cd935c100ab05f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 7226, "upload_time": "2019-10-29T17:32:19", "upload_time_iso_8601": "2019-10-29T17:32:19.259628Z", "url": "https://files.pythonhosted.org/packages/25/83/0b9ea67a2b5623f41c3b905e4d7024702e8110200071c1b2d8fdec7450ab/termtables-0.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "49a144eaa70552ae978194383ff348e7", "sha256": "27ea09b9afc9db88e1b386b4fcc645bd743679b9bc529397b2954bd41d2c9e7e" }, "downloads": -1, "filename": "termtables-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "49a144eaa70552ae978194383ff348e7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6115, "upload_time": "2020-03-05T16:28:26", "upload_time_iso_8601": "2020-03-05T16:28:26.801702Z", "url": "https://files.pythonhosted.org/packages/a4/84/4ba0d66598d79ee37fd2f8f871ec598571be584a74e4bfb330155721e247/termtables-0.1.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "c3d63c6e082ac22d8ed736359f39feb8", "sha256": "adea01d1fbbb3402ed46c1bf23e961fe882d2189b8e6f7b27caaa1394b7d649c" }, "downloads": -1, "filename": "termtables-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c3d63c6e082ac22d8ed736359f39feb8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 7321, "upload_time": "2020-03-05T16:28:28", "upload_time_iso_8601": "2020-03-05T16:28:28.174744Z", "url": "https://files.pythonhosted.org/packages/3f/71/37527cfcdb1f46e9d88a4eda841f632f6d4dc515efcad71a0a1b040a25d5/termtables-0.1.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "16ffde986b3e2ffeb152a475e7d0370d", "sha256": "9f77407955ebe74f5cf93742606cc6fbc9f725fda9e50bfc8f3198ba5cd39ba6" }, "downloads": -1, "filename": "termtables-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "16ffde986b3e2ffeb152a475e7d0370d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 17645, "upload_time": "2020-05-02T14:52:20", "upload_time_iso_8601": "2020-05-02T14:52:20.960387Z", "url": "https://files.pythonhosted.org/packages/2c/de/8daa8d5dd9951de2fd991d5b4220aae6f5b909410863d5b986080ea76d1b/termtables-0.2.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "609e91ae8f44a0644a6027c85b53cd28", "sha256": "9818dbdbd150a3571562a464252bbe4c9c6c0dcf157038c106519c66dfad0cca" }, "downloads": -1, "filename": "termtables-0.2.0.tar.gz", "has_sig": false, "md5_digest": "609e91ae8f44a0644a6027c85b53cd28", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 7341, "upload_time": "2020-05-02T14:52:21", "upload_time_iso_8601": "2020-05-02T14:52:21.916799Z", "url": "https://files.pythonhosted.org/packages/55/f2/dffd2946f693ee7e3d398bc6514a7131689f242f3f541ac702c9bfaff1d3/termtables-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ca44ce8ef2c339e75338c61a75f5bd4c", "sha256": "53c9e5b9d41e25c08ee9816afd4d37858b774f67fe9f63092e7a77acec3946e4" }, "downloads": -1, "filename": "termtables-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ca44ce8ef2c339e75338c61a75f5bd4c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 17728, "upload_time": "2020-05-02T15:19:25", "upload_time_iso_8601": "2020-05-02T15:19:25.040625Z", "url": "https://files.pythonhosted.org/packages/51/d3/cb7f1d5d93c9b7fcaa06fd1dfbe09f01d3cfc3f847187829cb995be82ff1/termtables-0.2.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "6984847634399c8069352fdbf2fec223", "sha256": "27415e8835917465a61a5af42d0acb1e37fbdb8bd7ea2b376abc984c0db8b57f" }, "downloads": -1, "filename": "termtables-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6984847634399c8069352fdbf2fec223", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 7480, "upload_time": "2020-05-02T15:19:26", "upload_time_iso_8601": "2020-05-02T15:19:26.820919Z", "url": "https://files.pythonhosted.org/packages/64/ea/6ae0e77149ce43321a56f07e40c6bda3cafaa7fc3c01b1da53353b5efe6c/termtables-0.2.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "95a1f6750593b1951b36a12119f81bdd", "sha256": "6a11e99b8a9fc877b2be7fcfc9a125eefdb8b591ca2bab83970f67a67c8a0918" }, "downloads": -1, "filename": "termtables-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "95a1f6750593b1951b36a12119f81bdd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 17757, "upload_time": "2020-07-16T17:07:31", "upload_time_iso_8601": "2020-07-16T17:07:31.306027Z", "url": "https://files.pythonhosted.org/packages/66/fd/ad699c66d9ebc6a6446c103e411defee2a057fc9156ec12c339a698788aa/termtables-0.2.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "03cae82428985ada12e308824d9d27a5", "sha256": "0cccd5555879d67f3d60d886093792a749c87e7946d77cbd87f9e64b17801bf5" }, "downloads": -1, "filename": "termtables-0.2.2.tar.gz", "has_sig": false, "md5_digest": "03cae82428985ada12e308824d9d27a5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 19813, "upload_time": "2020-07-16T17:07:32", "upload_time_iso_8601": "2020-07-16T17:07:32.534781Z", "url": "https://files.pythonhosted.org/packages/78/c3/ba315a4fdfcb3d68cf231afa209746cb17e2443cf445cd3661b878d9e096/termtables-0.2.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "cd5bf29cc1947e8aa10bc77a2ca19de9", "sha256": "a5f422dd1c6aeb864b8b17cbab0847dd3c622365d2c7b4078cc2dfd8e9ec54f2" }, "downloads": -1, "filename": "termtables-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "cd5bf29cc1947e8aa10bc77a2ca19de9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 17765, "upload_time": "2020-08-30T15:31:32", "upload_time_iso_8601": "2020-08-30T15:31:32.097196Z", "url": "https://files.pythonhosted.org/packages/a6/19/8a274482b1e3e74728bf932140dad8e5ff0e7b1217bd0c8f737bafaa8da7/termtables-0.2.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "b1380d87ca816d4f0dfd982ff139df9f", "sha256": "6c62e19e4d27a594ed53245b8d0ac5b818995a2eec571399bb4190c17d32df72" }, "downloads": -1, "filename": "termtables-0.2.3.tar.gz", "has_sig": false, "md5_digest": "b1380d87ca816d4f0dfd982ff139df9f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 20152, "upload_time": "2020-08-30T15:31:34", "upload_time_iso_8601": "2020-08-30T15:31:34.078123Z", "url": "https://files.pythonhosted.org/packages/e3/f6/fbb8ed497032f0576b341a04819e63fa3b1812a7e8ebd4d43be8be78ca32/termtables-0.2.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "b141aab3d4ad9bc298b0406ed7f5c43d", "sha256": "0ca860eed8957db0045020bcdfcf6620e188b0d776e8543a57ff539fcfeec26d" }, "downloads": -1, "filename": "termtables-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "b141aab3d4ad9bc298b0406ed7f5c43d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 17890, "upload_time": "2021-05-27T07:23:55", "upload_time_iso_8601": "2021-05-27T07:23:55.157252Z", "url": "https://files.pythonhosted.org/packages/f9/51/e56764d0db7ec7b2eb121749e6521a53697e8c1cd55a9d0e4374dd587543/termtables-0.2.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "9a858e608132c52ecfd20eb7bff1ed15", "sha256": "797c6afeb78abdab97cd5bfbbd2fc1bfbd9630052699dc881b27b334bcc6a73f" }, "downloads": -1, "filename": "termtables-0.2.4.tar.gz", "has_sig": false, "md5_digest": "9a858e608132c52ecfd20eb7bff1ed15", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 17745, "upload_time": "2021-05-27T07:23:56", "upload_time_iso_8601": "2021-05-27T07:23:56.567112Z", "url": "https://files.pythonhosted.org/packages/86/35/b2a0e5abf04e219c92cdc35af72dfcd157c1f43fda538adc282b34a26357/termtables-0.2.4.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b141aab3d4ad9bc298b0406ed7f5c43d", "sha256": "0ca860eed8957db0045020bcdfcf6620e188b0d776e8543a57ff539fcfeec26d" }, "downloads": -1, "filename": "termtables-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "b141aab3d4ad9bc298b0406ed7f5c43d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 17890, "upload_time": "2021-05-27T07:23:55", "upload_time_iso_8601": "2021-05-27T07:23:55.157252Z", "url": "https://files.pythonhosted.org/packages/f9/51/e56764d0db7ec7b2eb121749e6521a53697e8c1cd55a9d0e4374dd587543/termtables-0.2.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "9a858e608132c52ecfd20eb7bff1ed15", "sha256": "797c6afeb78abdab97cd5bfbbd2fc1bfbd9630052699dc881b27b334bcc6a73f" }, "downloads": -1, "filename": "termtables-0.2.4.tar.gz", "has_sig": false, "md5_digest": "9a858e608132c52ecfd20eb7bff1ed15", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 17745, "upload_time": "2021-05-27T07:23:56", "upload_time_iso_8601": "2021-05-27T07:23:56.567112Z", "url": "https://files.pythonhosted.org/packages/86/35/b2a0e5abf04e219c92cdc35af72dfcd157c1f43fda538adc282b34a26357/termtables-0.2.4.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }