{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# Drawtable (csvless)\n\nDrawtable is a python library for drawing ASCII table with text data.\nIt also contains a command line tool called `csvless`\nthat helps you view csv files without hassle.\n\n## Installation\n\n```\npip install drawtable\n```\n\n## Usage\n\n### CLI tool\n\nFor details please see `csvless -h`, here are some typical examples:\n\n```\n$ csvless samples/foo.csv\n\n$ csvless -s markdown samples/foo.csv\n\n$ csvless -s markdown --cat samples/foo.csv\n\n$ csvless -s box -N samples/foo.csv\n\n$ csvless -s box -N -n samples/foo.csv\n\n$ csvless -H samples/foo.csv\n\n$ csvless -w 10 --no-wrap samples/foo.csv\n```\n\n### Library\n\nDraw table box for list data:\n\n```python\n>>> from drawbox import Table\n>>> tb = Table(\n... margin_x=1,\n... margin_y=0,\n... align='left',\n... col_max_width=40,\n... )\n>>> tb.draw([\n... ['project', 'url'],\n... ['drawbox', 'https://github.com/reorx/drawbox'],\n>>> ])\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502 project \u2502 url \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 drawbox \u2502 https://github.com/reorx/drawbox \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\nDraw a simple one cell box:\n\n```python\n>>> from drawbox import Table\n>>> tb = Table(\n... margin_x=1,\n... margin_y=0,\n... align='center',\n... col_max_width=40,\n... )\n>>> tb.draw([[\n... \"\"\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\"\"\"\n... ]])\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502 Lorem ipsum dolor sit amet, consectetur \u2502\n\u2502 adipiscing elit, sed do eiusmod tempor i \u2502\n\u2502 ncididunt ut labore et dolore magna aliq \u2502\n\u2502 ua. Ut enim ad minim veniam, quis nostru \u2502\n\u2502 d exercitation ullamco laboris nisi ut a \u2502\n\u2502 liquip ex ea commodo consequat. \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "drawtable", "package_url": "https://pypi.org/project/drawtable/", "platform": "", "project_url": "https://pypi.org/project/drawtable/", "project_urls": null, "release_url": "https://pypi.org/project/drawtable/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.2.0" }, "last_serial": 3788576, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "81be772640cc5e642b5d9b6cd41e2ad1", "sha256": "26927c6ae57912f3117ee8cf2f8cd72b8162f38f348ca48e6bd45a711f3a809e" }, "downloads": -1, "filename": "drawtable-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "81be772640cc5e642b5d9b6cd41e2ad1", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 6213, "upload_time": "2018-04-22T08:53:27", "url": "https://files.pythonhosted.org/packages/c0/ae/83250981dbdd68948baf9bbb0df80370cffa513f76c3a5d9aaf6acf8bed4/drawtable-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ca26f912519479a8b3eb31b0d329b0c", "sha256": "ffe130b2753109f6bd58153934da4213e618b7fd4bf8260aeaa971c7c7907d39" }, "downloads": -1, "filename": "drawtable-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6ca26f912519479a8b3eb31b0d329b0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5810, "upload_time": "2018-04-22T08:53:25", "url": "https://files.pythonhosted.org/packages/c5/59/fe8fabd5ac3db887061ee8832b94e9138bd10d62175b2582d2451a11610d/drawtable-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e4b992497c46a883c04c468ff560c69e", "sha256": "28a11f996db2a3691c0ce5db8bff59f4c038e9457e31d522cd2e91bff850952f" }, "downloads": -1, "filename": "drawtable-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e4b992497c46a883c04c468ff560c69e", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9975, "upload_time": "2018-04-22T08:56:01", "url": "https://files.pythonhosted.org/packages/98/c0/615862422f7621e9110663a96c15532e4a95c2b606d4e71d3f1be9d959a2/drawtable-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41c895e37995a5080292ce5fd6a31cd8", "sha256": "d58f98f02f06dfe1efe101a57eead4c8eae8ac042f9117b1e1b93c2ed195db92" }, "downloads": -1, "filename": "drawtable-0.2.0.tar.gz", "has_sig": false, "md5_digest": "41c895e37995a5080292ce5fd6a31cd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9307, "upload_time": "2018-04-22T08:55:58", "url": "https://files.pythonhosted.org/packages/92/7c/0510a08d9e5c6a17335d6eac8c2df6a94da499e483118aa7ab51455fd647/drawtable-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e4b992497c46a883c04c468ff560c69e", "sha256": "28a11f996db2a3691c0ce5db8bff59f4c038e9457e31d522cd2e91bff850952f" }, "downloads": -1, "filename": "drawtable-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e4b992497c46a883c04c468ff560c69e", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9975, "upload_time": "2018-04-22T08:56:01", "url": "https://files.pythonhosted.org/packages/98/c0/615862422f7621e9110663a96c15532e4a95c2b606d4e71d3f1be9d959a2/drawtable-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41c895e37995a5080292ce5fd6a31cd8", "sha256": "d58f98f02f06dfe1efe101a57eead4c8eae8ac042f9117b1e1b93c2ed195db92" }, "downloads": -1, "filename": "drawtable-0.2.0.tar.gz", "has_sig": false, "md5_digest": "41c895e37995a5080292ce5fd6a31cd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9307, "upload_time": "2018-04-22T08:55:58", "url": "https://files.pythonhosted.org/packages/92/7c/0510a08d9e5c6a17335d6eac8c2df6a94da499e483118aa7ab51455fd647/drawtable-0.2.0.tar.gz" } ] }