rs-tabler


Namers-tabler JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2023-06-11 03:44:58
maintainerNone
docs_urlNone
authorEmbers-of-the-Fire<stellarishs@163.com>
requires_python>=3.7
licenseMIT or Apache-2.0
keywords table text formatter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Rs-Tabler

This lib is used to format plain-text table, written in both Rust and Python.

## Example

Code:

```python
from tabler import tabler, utils

table = utils.auto_table_create(
    header = ["Header Left", utils.auto_cell("Header Right").with_align(tabler.settings.Align.Right)],
    content = [["Row", utils.auto_cell("Content").with_align(tabler.settings.Align.Right)] for _ in range(2)],
    splitter = True
)
table.border = tabler.settings.Border.All

res = table.render(tabler.settings.Renderer.Normal)

print(res)
```

Output:

```
─────────────────────────────
| Header Left  Header Right |
|───────────────────────────|
| Row               Content |
| Row               Content |
─────────────────────────────
```

> Actually the border & header of the table is bold, but it cannot be rendered in markdown.

## Future Plan

Waiting for report :)

## Change Log

### V0.1.0

Initial version.

## Origin

This project is an encapsulation based on my rust crate [table_formatter](https://crates.io/crates/table_formatter), with almost the same apis.

If you have any problems or this project has any bugs, you can make an issue on both [this repo](https://github.com/Embers-of-the-Fire/rs-tabler) as well as the [original repo](https://github.com/Embers-of-the-Fire/rust-table-formatter).

## License

[MIT][MIT-License] or [Apache-2.0][Apache-License]

[MIT-License]: LICENSE-MIT
[Apache-License]: LICENSE-APACHE


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rs-tabler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "table,text,formatter",
    "author": "Embers-of-the-Fire<stellarishs@163.com>",
    "author_email": "Embers-of-the-Fire<stellarishs@163.com>",
    "download_url": "https://files.pythonhosted.org/packages/28/1e/66e650543a2339a7e663f5c62396aa4dd517ce2f9b4d44c136205d78851f/rs_tabler-0.1.0.tar.gz",
    "platform": null,
    "description": "# Rs-Tabler\n\nThis lib is used to format plain-text table, written in both Rust and Python.\n\n## Example\n\nCode:\n\n```python\nfrom tabler import tabler, utils\n\ntable = utils.auto_table_create(\n    header = [\"Header Left\", utils.auto_cell(\"Header Right\").with_align(tabler.settings.Align.Right)],\n    content = [[\"Row\", utils.auto_cell(\"Content\").with_align(tabler.settings.Align.Right)] for _ in range(2)],\n    splitter = True\n)\ntable.border = tabler.settings.Border.All\n\nres = table.render(tabler.settings.Renderer.Normal)\n\nprint(res)\n```\n\nOutput:\n\n```\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n| Header Left  Header Right |\n|\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500|\n| Row               Content |\n| Row               Content |\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n```\n\n> Actually the border & header of the table is bold, but it cannot be rendered in markdown.\n\n## Future Plan\n\nWaiting for report :)\n\n## Change Log\n\n### V0.1.0\n\nInitial version.\n\n## Origin\n\nThis project is an encapsulation based on my rust crate [table_formatter](https://crates.io/crates/table_formatter), with almost the same apis.\n\nIf you have any problems or this project has any bugs, you can make an issue on both [this repo](https://github.com/Embers-of-the-Fire/rs-tabler) as well as the [original repo](https://github.com/Embers-of-the-Fire/rust-table-formatter).\n\n## License\n\n[MIT][MIT-License] or [Apache-2.0][Apache-License]\n\n[MIT-License]: LICENSE-MIT\n[Apache-License]: LICENSE-APACHE\n\n",
    "bugtrack_url": null,
    "license": "MIT or Apache-2.0",
    "summary": null,
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "table",
        "text",
        "formatter"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4f33dbb08133ac1776c2f95ec893aaee7d9f4dad682b8e2e3cec4b5a59c0ea30",
                "md5": "c143b11569dc00f642615c8095d79fb1",
                "sha256": "50d906573c851c862ba58ce7f54d100b67e0c61adc9a3977265505da54408761"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-macosx_10_7_x86_64.whl",
            "has_sig": false,
            "md5_digest": "c143b11569dc00f642615c8095d79fb1",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 346445,
            "upload_time": "2023-06-11T03:44:40",
            "upload_time_iso_8601": "2023-06-11T03:44:40.308394Z",
            "url": "https://files.pythonhosted.org/packages/4f/33/dbb08133ac1776c2f95ec893aaee7d9f4dad682b8e2e3cec4b5a59c0ea30/rs_tabler-0.1.0-cp37-abi3-macosx_10_7_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d5b654de2039035771d6d33870bec83bc07d0cbbb5e166318cc309ec21793c36",
                "md5": "73a54d183a237af2a892bc961d89eb19",
                "sha256": "db2692adb6ff1ee78c3e95125ca7e73787ad76a4cb992dfdff22c34297e2e267"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "73a54d183a237af2a892bc961d89eb19",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 333905,
            "upload_time": "2023-06-11T03:44:42",
            "upload_time_iso_8601": "2023-06-11T03:44:42.471460Z",
            "url": "https://files.pythonhosted.org/packages/d5/b6/54de2039035771d6d33870bec83bc07d0cbbb5e166318cc309ec21793c36/rs_tabler-0.1.0-cp37-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "43e2da8a59fce0a46d9c6c8df4c8db0fa0519e807b957aeeaa1ac4b0f49fac46",
                "md5": "fa0cd7558cd7b138cf071fd4bbe903e7",
                "sha256": "dca378e899430dcbedae01bc4df226d281b4067847117796be2cee6a6803b2d7"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "fa0cd7558cd7b138cf071fd4bbe903e7",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1178177,
            "upload_time": "2023-06-11T03:44:44",
            "upload_time_iso_8601": "2023-06-11T03:44:44.292981Z",
            "url": "https://files.pythonhosted.org/packages/43/e2/da8a59fce0a46d9c6c8df4c8db0fa0519e807b957aeeaa1ac4b0f49fac46/rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "12583758df0848b31e376ed240582c575bbc1090b733c45cd3794eb6e9d145c3",
                "md5": "904a16469a6aad63bae17133e68ab5ab",
                "sha256": "bd9eaa49d6cdf257d28744f9e75a660a618e6e2da58b2b027b825b01569d92fd"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "has_sig": false,
            "md5_digest": "904a16469a6aad63bae17133e68ab5ab",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1174951,
            "upload_time": "2023-06-11T03:44:46",
            "upload_time_iso_8601": "2023-06-11T03:44:46.334126Z",
            "url": "https://files.pythonhosted.org/packages/12/58/3758df0848b31e376ed240582c575bbc1090b733c45cd3794eb6e9d145c3/rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8546db09a5b082698bc795d91091750705f93f641bd4594c243c3c6242576fdc",
                "md5": "a2898c577ead5ea8ce5d9a8ec57cfab2",
                "sha256": "1c1fd377975a2ff757b5a0379803cc664aa6ad68f8e713c27af3fa63354baab1"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "has_sig": false,
            "md5_digest": "a2898c577ead5ea8ce5d9a8ec57cfab2",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1306684,
            "upload_time": "2023-06-11T03:44:48",
            "upload_time_iso_8601": "2023-06-11T03:44:48.246370Z",
            "url": "https://files.pythonhosted.org/packages/85/46/db09a5b082698bc795d91091750705f93f641bd4594c243c3c6242576fdc/rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "478a4f4da479258699fdef53683a3718c98b695700c63d941d2aaf63e50167ce",
                "md5": "b51d4a33ddc6be24d237a4762bacff13",
                "sha256": "718c5a6f1ce76b8f9c0b1e95898a6f038df1e5f994425f2448251f490e20f017"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "has_sig": false,
            "md5_digest": "b51d4a33ddc6be24d237a4762bacff13",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1365603,
            "upload_time": "2023-06-11T03:44:50",
            "upload_time_iso_8601": "2023-06-11T03:44:50.144775Z",
            "url": "https://files.pythonhosted.org/packages/47/8a/4f4da479258699fdef53683a3718c98b695700c63d941d2aaf63e50167ce/rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2c81311b611833b8004c1edb12a03713ba42aa8807f190347e32dcb45335cbf8",
                "md5": "fb41b8f12ff1732f2e85f9b5b729ec1b",
                "sha256": "a750a79039f2227328eb2bc6b59e4526baa6476f7a492d6f8bf61cfa0ae4522e"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "fb41b8f12ff1732f2e85f9b5b729ec1b",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1183866,
            "upload_time": "2023-06-11T03:44:52",
            "upload_time_iso_8601": "2023-06-11T03:44:52.033085Z",
            "url": "https://files.pythonhosted.org/packages/2c/81/311b611833b8004c1edb12a03713ba42aa8807f190347e32dcb45335cbf8/rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c02157fe178f430eb1a1c3dc50e84e2cf54cbb607cb83c00bf7a30aeb820c936",
                "md5": "93e5bcfa8e9209206656f5a00bf7735f",
                "sha256": "4a70e4b511b884cb7b09ec22d0500dc6c26a364da7bf7d268ac364dca76db642"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl",
            "has_sig": false,
            "md5_digest": "93e5bcfa8e9209206656f5a00bf7735f",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1203384,
            "upload_time": "2023-06-11T03:44:53",
            "upload_time_iso_8601": "2023-06-11T03:44:53.892965Z",
            "url": "https://files.pythonhosted.org/packages/c0/21/57fe178f430eb1a1c3dc50e84e2cf54cbb607cb83c00bf7a30aeb820c936/rs_tabler-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "39eb36ca845dd9b057c621888f235a99e9a083c47a8d862188d99a328bcf24e8",
                "md5": "17cd2f9add97ecea3d305c2b8f4fae7c",
                "sha256": "1093d0764f1cb16f42e86f7e5342f4a9629d5d6f318e061980c5625252e28f0e"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-win32.whl",
            "has_sig": false,
            "md5_digest": "17cd2f9add97ecea3d305c2b8f4fae7c",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 194465,
            "upload_time": "2023-06-11T03:44:56",
            "upload_time_iso_8601": "2023-06-11T03:44:56.074673Z",
            "url": "https://files.pythonhosted.org/packages/39/eb/36ca845dd9b057c621888f235a99e9a083c47a8d862188d99a328bcf24e8/rs_tabler-0.1.0-cp37-abi3-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9bcf0d57aac352d7507e0d0bab7dbf010bcef45bc13cc2d069b926314646a61e",
                "md5": "d63a74fc835600aff3898bd7f076e764",
                "sha256": "7a0734d9f9e61d95cf705d16ebb98cc76bfee341e13d68e7654fe8d79f71d6b3"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0-cp37-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "d63a74fc835600aff3898bd7f076e764",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 205156,
            "upload_time": "2023-06-11T03:44:57",
            "upload_time_iso_8601": "2023-06-11T03:44:57.725748Z",
            "url": "https://files.pythonhosted.org/packages/9b/cf/0d57aac352d7507e0d0bab7dbf010bcef45bc13cc2d069b926314646a61e/rs_tabler-0.1.0-cp37-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "281e66e650543a2339a7e663f5c62396aa4dd517ce2f9b4d44c136205d78851f",
                "md5": "9962e8b1710c4ae38709505ea98c16a1",
                "sha256": "a27fb96480471172492264326688056aae43c7be3689e45c0dca758660463eb6"
            },
            "downloads": -1,
            "filename": "rs_tabler-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9962e8b1710c4ae38709505ea98c16a1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10684,
            "upload_time": "2023-06-11T03:44:58",
            "upload_time_iso_8601": "2023-06-11T03:44:58.812934Z",
            "url": "https://files.pythonhosted.org/packages/28/1e/66e650543a2339a7e663f5c62396aa4dd517ce2f9b4d44c136205d78851f/rs_tabler-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-11 03:44:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "rs-tabler"
}
        
Elapsed time: 0.07292s