Skip to main content

Aligned text table

A parser for tables in plain text that are aligned with spaces, e.g.:

This is     Column two   This one
column one               is column
                         three

Usage

>>> from aligned_text_table import parse_row

>>> parse_row(
...     lines=[
...         "This is     Column two   This one ",
...         "column one               is column",
...         "three    "
...     ],
...     keys=["one", "two", "three"]
... )

{
    "one": "This is column one",
    "two": "Column two",
    "three": "This one is column three"
}

Tests

To run tests, install and run Tox:

pip3 install tox
tox

Metadata

Release files for aligned-text-table 0.3.0

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

Source distribution (sdist)

Source distribution for aligned-text-table 0.3.0
File Size Uploaded
aligned_text_table-0.3.0.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aligned-text-table 0.3.0
File Interpreter ABI Platform
aligned_text_table-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / aligned_text_table-0.3.0.tar.gz

Download URL aligned_text_table-0.3.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e610e70ef3672dfdfce40ebe8f9d8ab6049816d4ced2bdb36ffd9decbb6c0df1
BLAKE2b-256 checksum
How to use checksums
d259fe8fb0b8b9a2157033cbcb2aed3720f9b9978f1c97b8af053c1938dee899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic

Release files / aligned_text_table-0.3.0-py3-none-any.whl

Download URL aligned_text_table-0.3.0-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf4c953df35c798ebfff18f6e96670c16a1f3728122b7a8eeee9ce76005b4834
BLAKE2b-256 checksum
How to use checksums
a177dac132bfa4dc5651e3cf18d27310c83db39228915488e5d49ac2f75d4dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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