跳转到主要内容

纯文本中对齐表格的解析器

项目描述

对齐文本表格

纯文本中对齐表格的解析器,例如。

This is     Column two   This one
column one               is column
                         three

用法

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

测试

要运行测试,请安装并运行Tox

pip3 install tox
tox

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源代码分发

aligned_text_table-0.3.0.tar.gz (2.1 kB 查看哈希值)

上传时间: 源代码

构建分发

aligned_text_table-0.3.0-py3-none-any.whl (2.4 kB 查看哈希值)

上传时间: Python 3

由以下组织支持