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
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
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
Built Distribution
File details
Details for the file aligned_text_table-0.3.0.tar.gz
.
File metadata
- Download URL: aligned_text_table-0.3.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e610e70ef3672dfdfce40ebe8f9d8ab6049816d4ced2bdb36ffd9decbb6c0df1 |
|
MD5 | 1c09168ceb5810c9b8340499927c4f30 |
|
BLAKE2b-256 | d259fe8fb0b8b9a2157033cbcb2aed3720f9b9978f1c97b8af053c1938dee899 |
File details
Details for the file aligned_text_table-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: aligned_text_table-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.2.0-20-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf4c953df35c798ebfff18f6e96670c16a1f3728122b7a8eeee9ce76005b4834 |
|
MD5 | 6edf22c7085359eb23b04302a80898bf |
|
BLAKE2b-256 | a177dac132bfa4dc5651e3cf18d27310c83db39228915488e5d49ac2f75d4dc9 |