Skip to main content

Parser for space-aligned tables in plain text

Project description

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


>>> 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"


To run tests, install and run Tox:

pip3 install tox

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

aligned_text_table-0.3.0.tar.gz (2.1 kB view hashes)

Uploaded source

Built Distribution

aligned_text_table-0.3.0-py3-none-any.whl (2.4 kB view hashes)

Uploaded py3

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