terminaltables


Nameterminaltables JSON
Version 3.1.10 PyPI version JSON
download
home_pagehttps://github.com/matthewdeanmartin/terminaltables
SummaryGenerate simple tables in terminals from a nested list of strings.
upload_time2021-12-07 19:03:35
maintainer
docs_urlNone
authorRobpol86
requires_python>=2.6
licenseMIT
keywords shell bash ansi ascii terminal tables
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## terminaltables

# What is it

Easily draw tables in terminal/console applications from a list of lists of strings. Supports multi-line rows.

- Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5+ supported on Linux and OS X.
- Python 2.7, 3.3, 3.4, and 3.5+ supported on Windows (both 32 and 64 bit versions of Python).

📖 Full documentation: https://robpol86.github.io/terminaltables

Quickstart
==========

Install:

```bash
pip install terminaltables
```

Usage:

```python
from terminaltables import AsciiTable

table_data = [
    ['Heading1', 'Heading2'],
    ['row1 column1', 'row1 column2'],
    ['row2 column1', 'row2 column2'],
    ['row3 column1', 'row3 column2']
]
table = AsciiTable(table_data)
print
table.table
```

```bash
+--------------+--------------+
| Heading1     | Heading2     |
+--------------+--------------+
| row1 column1 | row1 column2 |
| row2 column1 | row2 column2 |
| row3 column1 | row3 column2 |
+--------------+--------------+
```

Example Implementations
=======================
![Example Scripts Screenshot](https://github.com/matthewdeanmartin/terminaltables/blob/master/docs/examples.png?raw=true)

Source code for examples:

- [example1.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example1.py)
- [example2.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example2.py)
- [example3.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example3.py)

[Change Log](https://github.com/matthewdeanmartin/terminaltables/blob/master/CHANGELOG.md)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/matthewdeanmartin/terminaltables",
    "name": "terminaltables",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.6",
    "maintainer_email": "",
    "keywords": "Shell,Bash,ANSI,ASCII,terminal,tables",
    "author": "Robpol86",
    "author_email": "robpol86@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f5/fc/0b73d782f5ab7feba8d007573a3773c58255f223c5940a7b7085f02153c3/terminaltables-3.1.10.tar.gz",
    "platform": "",
    "description": "## terminaltables\n\n# What is it\n\nEasily draw tables in terminal/console applications from a list of lists of strings. Supports multi-line rows.\n\n- Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5+ supported on Linux and OS X.\n- Python 2.7, 3.3, 3.4, and 3.5+ supported on Windows (both 32 and 64 bit versions of Python).\n\n\ud83d\udcd6 Full documentation: https://robpol86.github.io/terminaltables\n\nQuickstart\n==========\n\nInstall:\n\n```bash\npip install terminaltables\n```\n\nUsage:\n\n```python\nfrom terminaltables import AsciiTable\n\ntable_data = [\n    ['Heading1', 'Heading2'],\n    ['row1 column1', 'row1 column2'],\n    ['row2 column1', 'row2 column2'],\n    ['row3 column1', 'row3 column2']\n]\ntable = AsciiTable(table_data)\nprint\ntable.table\n```\n\n```bash\n+--------------+--------------+\n| Heading1     | Heading2     |\n+--------------+--------------+\n| row1 column1 | row1 column2 |\n| row2 column1 | row2 column2 |\n| row3 column1 | row3 column2 |\n+--------------+--------------+\n```\n\nExample Implementations\n=======================\n![Example Scripts Screenshot](https://github.com/matthewdeanmartin/terminaltables/blob/master/docs/examples.png?raw=true)\n\nSource code for examples:\n\n- [example1.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example1.py)\n- [example2.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example2.py)\n- [example3.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example3.py)\n\n[Change Log](https://github.com/matthewdeanmartin/terminaltables/blob/master/CHANGELOG.md)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generate simple tables in terminals from a nested list of strings.",
    "version": "3.1.10",
    "split_keywords": [
        "shell",
        "bash",
        "ansi",
        "ascii",
        "terminal",
        "tables"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "6f125645c5a6766fa3fc01859d4a2514",
                "sha256": "e4fdc4179c9e4aab5f674d80f09d76fa436b96fdc698a8505e0a36bf0804a874"
            },
            "downloads": -1,
            "filename": "terminaltables-3.1.10-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6f125645c5a6766fa3fc01859d4a2514",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.6",
            "size": 15155,
            "upload_time": "2021-12-07T19:03:34",
            "upload_time_iso_8601": "2021-12-07T19:03:34.013333Z",
            "url": "https://files.pythonhosted.org/packages/c4/fb/ea621e0a19733e01fe4005d46087d383693c0f4a8f824b47d8d4122c87e0/terminaltables-3.1.10-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5467e06a1a6e24dc44e6dd241706668e",
                "sha256": "ba6eca5cb5ba02bba4c9f4f985af80c54ec3dccf94cfcd190154386255e47543"
            },
            "downloads": -1,
            "filename": "terminaltables-3.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "5467e06a1a6e24dc44e6dd241706668e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.6",
            "size": 12264,
            "upload_time": "2021-12-07T19:03:35",
            "upload_time_iso_8601": "2021-12-07T19:03:35.758334Z",
            "url": "https://files.pythonhosted.org/packages/f5/fc/0b73d782f5ab7feba8d007573a3773c58255f223c5940a7b7085f02153c3/terminaltables-3.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-12-07 19:03:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "matthewdeanmartin",
    "github_project": "terminaltables",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "terminaltables"
}
        
Elapsed time: 0.01189s