Skip to main content

No project description provided

Project description

Rs-Tabler

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

Example

Code:

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, 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 as well as the original repo.

License

MIT or Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rs_tabler-0.1.0.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distributions

rs_tabler-0.1.0-cp37-abi3-win_amd64.whl (205.2 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

rs_tabler-0.1.0-cp37-abi3-win32.whl (194.5 kB view hashes)

Uploaded CPython 3.7+ Windows x86

rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.4 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.3 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

rs_tabler-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

rs_tabler-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

rs_tabler-0.1.0-cp37-abi3-macosx_11_0_arm64.whl (333.9 kB view hashes)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

rs_tabler-0.1.0-cp37-abi3-macosx_10_7_x86_64.whl (346.4 kB view hashes)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page