Skip to main content

lxj

Turn rows into a table that lines up, without a dependency on tabulate.

Install

pip install lxj

Usage

from lxj import render_table

print(render_table(["name", "n"], [["a", 1], ["beta", 22]]))
# name  n
# ----  --
# a     1
# beta  22

print(render_table(["name", "n"], [["a", 1]], n_align=["left", "right"]))
# name  n
# ---- --
# a      1

Behaviour

Case Result
ragged row ValueError
alignment list length mismatch ValueError
unknown alignment ValueError
trailing spaces trimmed per line

Cells are stringified with str(); width is measured in characters, so wide CJK glyphs still count as one column — use a monospace terminal and avoid mixing scripts in the same column if that matters.

License

MIT

Metadata

Release files for lxj 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lxj 0.0.2
File Size Uploaded Provenance Actions
lxj-0.0.2.tar.gz 3.2 kB Without provenance Details for lxj-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lxj 0.0.2
File Interpreter ABI Platform Actions
lxj-0.0.2-py3-none-any.whl Python 3 none any Details for lxj-0.0.2-py3-none-any.whl

Total release size: 6.7 kB

Release files / lxj-0.0.2.tar.gz

Download URL lxj-0.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a05514708fe8b189cb59b911ff02f715d37e5feb72d2215c1251ea2868e3f128
BLAKE2b-256 checksum
How to use checksums
b48199d2fd8116b7eee3d4d07ea99d69b8bb472751fe2aca60d47abbb143e01a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / lxj-0.0.2-py3-none-any.whl

Download URL lxj-0.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cff38dfb4fb86cef5a60e1794dfaa05f0aaf7e496d2fd87f01f760eef0ae5ada
BLAKE2b-256 checksum
How to use checksums
fec2ad607f8694fbb6201a669950363c8125e6dfe1a4bf795d89625b24bd012e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for lxj 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page