aligned-text-table-0.3.0
توضیحات
Parser for space-aligned tables in plain text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aligned-text-table-0.3.0 |
| نام | aligned-text-table |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Robin Winslow |
| ایمیل نویسنده | robin@robinwinslow.co.uk |
| آدرس صفحه اصلی | https://github.com/nottrobin/aligned-text-table |
| آدرس اینترنتی | https://pypi.org/project/aligned-text-table/ |
| مجوز | Public domain |
# 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
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl aligned-text-table-0.3.0:
pip install aligned-text-table-0.3.0.whl
نصب پکیج tar.gz aligned-text-table-0.3.0:
pip install aligned-text-table-0.3.0.tar.gz