simple-ascii-tables


Namesimple-ascii-tables JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://www.kerykeion.net/
SummarySimple, minimal, dependency-free ASCII tables for Python.
upload_time2025-01-23 18:31:51
maintainerNone
docs_urlNone
authorGiacomo Battaglia
requires_python<4.0,>=3.9
licenseMIT
keywords ascii table ascii-table ascii-tables simple simple-ascii-table
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Simple Ascii Tables

A simple, minimal and *dependency-free* python package for generating ascii tables.

It's a simplified fork of terminaltables.

## Why another fork?

Terminal Tables was a super cool project. It's no more maintained sadly.
There are some forks but they're too much complex for a basic usage.
There is also Rich library which is awesome but it's bloated for a simple ascii table with no dependencies.


## Installation

```bash
pip install simple-ascii-tables
```

## Usage

```python
from simple_ascii_tables import AsciiTable

table_data = [
    ["Name", "Age", "Country"],
    ["Alice", 24, "Canada"],
    ["Bob", 19, "USA"],
    ["Charlie", 30, "Australia"],
]

table = AsciiTable(table_data)
table.title = "User Information"
print(table.table)
```

Output:

```plaintext
+User Information-----------+
| Name    | Age | Country   |
+---------+-----+-----------+
| Alice   | 24  | Canada    |
| Bob     | 19  | USA       |
| Charlie | 30  | Australia |
+---------+-----+-----------+
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.kerykeion.net/",
    "name": "simple-ascii-tables",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "ascii, table, ascii-table, ascii-tables, simple, simple-ascii-table",
    "author": "Giacomo Battaglia",
    "author_email": "kerykeion.astrology@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d3/af/63183f671e18b6a74f18c22f758b31f70723ef55e9dba58966d9b7143ac1/simple_ascii_tables-1.0.0.tar.gz",
    "platform": null,
    "description": "# Simple Ascii Tables\n\nA simple, minimal and *dependency-free* python package for generating ascii tables.\n\nIt's a simplified fork of terminaltables.\n\n## Why another fork?\n\nTerminal Tables was a super cool project. It's no more maintained sadly.\nThere are some forks but they're too much complex for a basic usage.\nThere is also Rich library which is awesome but it's bloated for a simple ascii table with no dependencies.\n\n\n## Installation\n\n```bash\npip install simple-ascii-tables\n```\n\n## Usage\n\n```python\nfrom simple_ascii_tables import AsciiTable\n\ntable_data = [\n    [\"Name\", \"Age\", \"Country\"],\n    [\"Alice\", 24, \"Canada\"],\n    [\"Bob\", 19, \"USA\"],\n    [\"Charlie\", 30, \"Australia\"],\n]\n\ntable = AsciiTable(table_data)\ntable.title = \"User Information\"\nprint(table.table)\n```\n\nOutput:\n\n```plaintext\n+User Information-----------+\n| Name    | Age | Country   |\n+---------+-----+-----------+\n| Alice   | 24  | Canada    |\n| Bob     | 19  | USA       |\n| Charlie | 30  | Australia |\n+---------+-----+-----------+\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple, minimal, dependency-free ASCII tables for Python.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://www.kerykeion.net/",
        "Repository": "https://www.kerykeion.net/"
    },
    "split_keywords": [
        "ascii",
        " table",
        " ascii-table",
        " ascii-tables",
        " simple",
        " simple-ascii-table"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0ea5c879e1cf1109254e1049e878b2799c12e0c313e2c0c28626dae55926ffa",
                "md5": "ed87b95edbf7bcc33b63a14b7430a360",
                "sha256": "40acf5b852bb1b3a21217d0d07458f2519597c3d8b045b9314593225c3671bc6"
            },
            "downloads": -1,
            "filename": "simple_ascii_tables-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed87b95edbf7bcc33b63a14b7430a360",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 11087,
            "upload_time": "2025-01-23T18:31:49",
            "upload_time_iso_8601": "2025-01-23T18:31:49.247855Z",
            "url": "https://files.pythonhosted.org/packages/b0/ea/5c879e1cf1109254e1049e878b2799c12e0c313e2c0c28626dae55926ffa/simple_ascii_tables-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3af63183f671e18b6a74f18c22f758b31f70723ef55e9dba58966d9b7143ac1",
                "md5": "781361a50dfa038821c3c3d6817939b3",
                "sha256": "b6e63c52d1e369239edfc3a8c27565ae291ea8ea79e5a3f3321c316a83c7822d"
            },
            "downloads": -1,
            "filename": "simple_ascii_tables-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "781361a50dfa038821c3c3d6817939b3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 9463,
            "upload_time": "2025-01-23T18:31:51",
            "upload_time_iso_8601": "2025-01-23T18:31:51.078302Z",
            "url": "https://files.pythonhosted.org/packages/d3/af/63183f671e18b6a74f18c22f758b31f70723ef55e9dba58966d9b7143ac1/simple_ascii_tables-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-23 18:31:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "simple-ascii-tables"
}
        
Elapsed time: 0.38475s