Skip to main content

A very simple tabular data formatter for console application.

Project description

Tabler

A very simple tabular data formatter for console application.

Installation

pip install py-tabler

Example

from tabler import Tabler


table = Tabler(
    data=[
        [1, 2, 3],
        [4, 5, 6],
    ],
    columns=["col1", "col2", "col3"],
)

print(table.format())

Output

+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| 1    | 2    | 3    |
| 4    | 5    | 6    |
+------+------+------+

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

py-tabler-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file py-tabler-0.1.1.tar.gz.

File metadata

  • Download URL: py-tabler-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for py-tabler-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a8a43dad37b2a24b1a0042bb4e467e7c7dc24b8d543e51d486cfd863fbc8daa
MD5 0d106b9c45d7a00520445eac07853ad1
BLAKE2b-256 d44386a7b4c30594e006b0147fd63fd5c1fb20edec378d7bd832d20ef2f51095

See more details on using hashes here.

Supported by

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