{"id":15372293,"url":"https://github.com/reorx/drawtable","last_synced_at":"2025-04-15T12:31:30.724Z","repository":{"id":141892382,"uuid":"109944340","full_name":"reorx/drawtable","owner":"reorx","description":"Draw ASCII art box with text.","archived":false,"fork":false,"pushed_at":"2024-07-19T23:58:38.000Z","size":115,"stargazers_count":7,"open_issues_count":6,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T21:03:27.480Z","etag":null,"topics":["ascii-art","box","pyhon"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reorx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-08T07:49:27.000Z","updated_at":"2023-08-28T01:31:52.000Z","dependencies_parsed_at":"2024-01-09T00:34:08.851Z","dependency_job_id":"e252771b-f6bb-417b-9105-5ca70bcb2fa8","html_url":"https://github.com/reorx/drawtable","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":0.3035714285714286,"last_synced_commit":"6d4ee3732368205664692e87e0b33f89277a3416"},"previous_names":["reorx/drawbox"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reorx%2Fdrawtable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reorx%2Fdrawtable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reorx%2Fdrawtable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reorx%2Fdrawtable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reorx","download_url":"https://codeload.github.com/reorx/drawtable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249072214,"owners_count":21208141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii-art","box","pyhon"],"created_at":"2024-10-01T13:50:02.930Z","updated_at":"2025-04-15T12:31:30.340Z","avatar_url":"https://github.com/reorx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drawtable (csvless)\n\n[![Build Status](https://travis-ci.org/reorx/drawtable.svg?branch=master)](https://travis-ci.org/reorx/drawtable)\n[![Coverage Status](https://coveralls.io/repos/github/reorx/drawtable/badge.svg?branch=master)](https://coveralls.io/github/reorx/drawtable?branch=master)\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\u003e\u003e\u003e from drawtable import Table\n\u003e\u003e\u003e tb = Table(\n...     margin_x=1,\n...     margin_y=0,\n...     align='left',\n...     max_col_width=40,\n... )\n\u003e\u003e\u003e tb.draw([\n...     ['project', 'url'],\n...     ['drawtable', 'https://github.com/reorx/drawtable'],\n\u003e\u003e\u003e ])\n┌───────────┬────────────────────────────────────┐\n│ project   │ url                                │\n├───────────┼────────────────────────────────────┤\n│ drawtable │ https://github.com/reorx/drawtable │\n└───────────┴────────────────────────────────────┘\n```\n\nDraw a simple one cell box:\n\n```python\n\u003e\u003e\u003e from drawtable import Table\n\u003e\u003e\u003e tb = Table(\n...     margin_x=1,\n...     margin_y=0,\n...     align='center',\n...     max_col_width=40,\n... )\n\u003e\u003e\u003e 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┌──────────────────────────────────────────┐\n│ Lorem ipsum dolor sit amet, consectetur  │\n│ adipiscing elit, sed do eiusmod tempor i │\n│ ncididunt ut labore et dolore magna aliq │\n│ ua. Ut enim ad minim veniam, quis nostru │\n│ d exercitation ullamco laboris nisi ut a │\n│     liquip ex ea commodo consequat.      │\n└──────────────────────────────────────────┘\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freorx%2Fdrawtable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freorx%2Fdrawtable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freorx%2Fdrawtable/lists"}