Name | griddle JSON |
Version |
0.0.2
JSON |
| download |
home_page | |
Summary | Turn an interable into a printable grid with dynamically controlled column sizes to shrink grid width to your terminal size. |
upload_time | 2024-02-18 22:12:13 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | |
keywords |
grid
print
tabulate
terminal
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# griddle
Turn tabular data into a printable grid. <br>
Wraps the [tabulate](https://pypi.org/project/tabulate/) to streamline usage as well as
automatically reduce column widths to fit the grid to the current terminal width.
## Installation
Install with:
<pre>
pip install griddle
</pre>
## Usage
<pre>
>>> from griddle import griddy
>>> data = [{"a": i, "b": i+1, "c": i+2} for i in range(10)]
>>> print(griddy(data, "keys"))
╭─────┬─────┬─────╮
│ a │ b │ c │
├─────┼─────┼─────┤
│ 0 │ 1 │ 2 │
├─────┼─────┼─────┤
│ 1 │ 2 │ 3 │
├─────┼─────┼─────┤
│ 2 │ 3 │ 4 │
├─────┼─────┼─────┤
│ 3 │ 4 │ 5 │
├─────┼─────┼─────┤
│ 4 │ 5 │ 6 │
├─────┼─────┼─────┤
│ 5 │ 6 │ 7 │
├─────┼─────┼─────┤
│ 6 │ 7 │ 8 │
├─────┼─────┼─────┤
│ 7 │ 8 │ 9 │
├─────┼─────┼─────┤
│ 8 │ 9 │ 10 │
├─────┼─────┼─────┤
│ 9 │ 10 │ 11 │
╰─────┴─────┴─────╯
</pre>
Raw data
{
"_id": null,
"home_page": "",
"name": "griddle",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "grid,print,tabulate,terminal",
"author": "",
"author_email": "Matt Manes <mattmanes@pm.me>",
"download_url": "https://files.pythonhosted.org/packages/8a/54/ea6a7647ec4d1be981165a77356d18e3c1ddfd52a2b65127f2884ba7a7e9/griddle-0.0.2.tar.gz",
"platform": null,
"description": "# griddle\n\nTurn tabular data into a printable grid. <br>\nWraps the [tabulate](https://pypi.org/project/tabulate/) to streamline usage as well as\nautomatically reduce column widths to fit the grid to the current terminal width.\n\n## Installation\n\nInstall with:\n\n<pre>\npip install griddle\n</pre>\n\n\n\n## Usage\n\n<pre>\n>>> from griddle import griddy\n>>> data = [{\"a\": i, \"b\": i+1, \"c\": i+2} for i in range(10)]\n>>> print(griddy(data, \"keys\"))\n\u256d\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u256e\n\u2502 a \u2502 b \u2502 c \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 0 \u2502 1 \u2502 2 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 1 \u2502 2 \u2502 3 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 2 \u2502 3 \u2502 4 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 3 \u2502 4 \u2502 5 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 4 \u2502 5 \u2502 6 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 5 \u2502 6 \u2502 7 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 6 \u2502 7 \u2502 8 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 7 \u2502 8 \u2502 9 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 8 \u2502 9 \u2502 10 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 9 \u2502 10 \u2502 11 \u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u256f\n</pre>\n",
"bugtrack_url": null,
"license": "",
"summary": "Turn an interable into a printable grid with dynamically controlled column sizes to shrink grid width to your terminal size.",
"version": "0.0.2",
"project_urls": {
"Documentation": "https://github.com/matt-manes/griddle/tree/main/docs",
"Homepage": "https://github.com/matt-manes/griddle",
"Source code": "https://github.com/matt-manes/griddle/tree/main/src/griddle"
},
"split_keywords": [
"grid",
"print",
"tabulate",
"terminal"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b053306b70a762e83e7b8d65a7043d4ad5cc14dfc2315f4fdd62058689aefba7",
"md5": "4f2363bbacba6040299123f82b8ad8cb",
"sha256": "17da223b098368f842abe0645250319197fadf442a8300ebe86c74da73320730"
},
"downloads": -1,
"filename": "griddle-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4f2363bbacba6040299123f82b8ad8cb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 3707,
"upload_time": "2024-02-18T22:12:12",
"upload_time_iso_8601": "2024-02-18T22:12:12.692270Z",
"url": "https://files.pythonhosted.org/packages/b0/53/306b70a762e83e7b8d65a7043d4ad5cc14dfc2315f4fdd62058689aefba7/griddle-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a54ea6a7647ec4d1be981165a77356d18e3c1ddfd52a2b65127f2884ba7a7e9",
"md5": "4dd281c921e71986ba4617955727919c",
"sha256": "f69764b7ab6fac97168108955f708833cde26513ad076989ea556ceb7aea7113"
},
"downloads": -1,
"filename": "griddle-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "4dd281c921e71986ba4617955727919c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 3232,
"upload_time": "2024-02-18T22:12:13",
"upload_time_iso_8601": "2024-02-18T22:12:13.957349Z",
"url": "https://files.pythonhosted.org/packages/8a/54/ea6a7647ec4d1be981165a77356d18e3c1ddfd52a2b65127f2884ba7a7e9/griddle-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-18 22:12:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "matt-manes",
"github_project": "griddle",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "griddle"
}