PythonTableConsole


NamePythonTableConsole JSON
Version 1.2.0 PyPI version JSON
download
home_page
SummaryModule for creating tables for console applications
upload_time2024-03-02 19:37:22
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT License Copyright (c) 2024 Mykhailo Holub Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords console table
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PythonTableConsole
Simple console-oriented handler for python two-dimensional lists (tables). Put your list in handler,  modify it and use it from handler or take it out from handler and use on its own.
#### Features:
 - List handler that works with python 2-dimensional lists.
 - Easy access to height and width of the table.
 - Simple handy functions: transposing and sorting.
 - Print your lists as tables to the console!
## Examples:
#### Creating table from list:
```python
import PythonTableConsole as PTC
my_list = [['a', 'b', 'c'], [1, 2, 3], [7,4,3,2,0,10]]
Table = PTC.PythonTableConsole(my_list)
# or PTC.PythonTableConsole([['a', 'b', 'c'], [1, 2, 3], [7,4,3,2,0,10]])
```
#### Printing table to the console:
```python
print(Table)
```
#### Changing table:
```python
Table.contains[0][0] = 'alpha'
```
#### Functions of the PythonTableConsole class:
```python
Table.width()  # returns number of columns
Table.height()  # returns number of rows
Table.transpose()  # transposes the Table: rows to columns, columns to rows
Table.sort_by_column(column_index, skip_n_rows = 0)  # sorts the table (except first n rows) by specified column. MAY BE REMOVED IN THE FUTURE
Table.sort_by_column_with_skips(column_index, skip_rows = [], skip_columns = [], largest_at_the_top = True)  # sorts the table (except specified rows and columns) by the specified column.
Table.sort_by_row_with_skips(row_index, skip_rows = [], skip_columns = [], largest_at_the_top = True)  # sorts the table (except specified rows and columns) by the specified row.
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "PythonTableConsole",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "console,table",
    "author": "",
    "author_email": "Mykhailo Holub <mishataube2005@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/7e/46/dea262ec382b6268747a3ad3205f491efbc5eb96ab95f12e8038733430e9/PythonTableConsole-1.2.0.tar.gz",
    "platform": null,
    "description": "# PythonTableConsole\r\nSimple console-oriented handler for python two-dimensional lists (tables). Put your list in handler,  modify it and use it from handler or take it out from handler and use on its own.\r\n#### Features:\r\n - List handler that works with python 2-dimensional lists.\r\n - Easy access to height and width of the table.\r\n - Simple handy functions: transposing and sorting.\r\n - Print your lists as tables to the console!\r\n## Examples:\r\n#### Creating table from list:\r\n```python\r\nimport PythonTableConsole as PTC\r\nmy_list = [['a', 'b', 'c'], [1, 2, 3], [7,4,3,2,0,10]]\r\nTable = PTC.PythonTableConsole(my_list)\r\n# or PTC.PythonTableConsole([['a', 'b', 'c'], [1, 2, 3], [7,4,3,2,0,10]])\r\n```\r\n#### Printing table to the console:\r\n```python\r\nprint(Table)\r\n```\r\n#### Changing table:\r\n```python\r\nTable.contains[0][0] = 'alpha'\r\n```\r\n#### Functions of the PythonTableConsole class:\r\n```python\r\nTable.width()  # returns number of columns\r\nTable.height()  # returns number of rows\r\nTable.transpose()  # transposes the Table: rows to columns, columns to rows\r\nTable.sort_by_column(column_index, skip_n_rows = 0)  # sorts the table (except first n rows) by specified column. MAY BE REMOVED IN THE FUTURE\r\nTable.sort_by_column_with_skips(column_index, skip_rows = [], skip_columns = [], largest_at_the_top = True)  # sorts the table (except specified rows and columns) by the specified column.\r\nTable.sort_by_row_with_skips(row_index, skip_rows = [], skip_columns = [], largest_at_the_top = True)  # sorts the table (except specified rows and columns) by the specified row.\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Mykhailo Holub  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Module for creating tables for console applications",
    "version": "1.2.0",
    "project_urls": {
        "Homepage": "https://github.com/MINIAProgramStudio/PythonTableConsole"
    },
    "split_keywords": [
        "console",
        "table"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bbae140d6cbb1d99d04c128c8cc2f36a064f59b2349301ec4a94ae551f7f5999",
                "md5": "8daa3f5c9a7dc70e328fd4fb70276847",
                "sha256": "c4c45409cd747fdb975b0ee307b7f5b9f668154842dd9b9843d094fc6f4cf7c5"
            },
            "downloads": -1,
            "filename": "PythonTableConsole-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8daa3f5c9a7dc70e328fd4fb70276847",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 5465,
            "upload_time": "2024-03-02T19:37:20",
            "upload_time_iso_8601": "2024-03-02T19:37:20.726721Z",
            "url": "https://files.pythonhosted.org/packages/bb/ae/140d6cbb1d99d04c128c8cc2f36a064f59b2349301ec4a94ae551f7f5999/PythonTableConsole-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e46dea262ec382b6268747a3ad3205f491efbc5eb96ab95f12e8038733430e9",
                "md5": "c2d635cb4dea8790808456f14c237399",
                "sha256": "516e11c3a9bfadc4485c7934ee7d25d5d6f33c8ba8a109cf3d58e3dff17b4152"
            },
            "downloads": -1,
            "filename": "PythonTableConsole-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c2d635cb4dea8790808456f14c237399",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 4407,
            "upload_time": "2024-03-02T19:37:22",
            "upload_time_iso_8601": "2024-03-02T19:37:22.424725Z",
            "url": "https://files.pythonhosted.org/packages/7e/46/dea262ec382b6268747a3ad3205f491efbc5eb96ab95f12e8038733430e9/PythonTableConsole-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-02 19:37:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MINIAProgramStudio",
    "github_project": "PythonTableConsole",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pythontableconsole"
}
        
Elapsed time: 0.23231s