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)
| File | Size | Uploaded | |
|---|---|---|---|
| aligned_text_table-0.3.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|