Skip to main content

Parser of multi-lines string representation tables

Project description

Parser of string representation tables, input example:

header_1st_col   | header_2nd_col   |\n
row_1_of_1st_col | row_1_of_2nd_col |\n
row_2_of_1st_col | row_2_of_2nd_col |

Parsed information can be accessed by rows:

[{'header_1st_col': 'row_1_of_1st_col', 'header_2nd_col': 'row_1_of_2nd_col'},
 {'header_1st_col': 'row_2_of_1st_col', 'header_2nd_col': 'row_2_of_2nd_col'}]

As well as by columns:

{'header_1st_col': ['row_1_of_1st_col', 'row_2_of_1st_col'],
  header_2nd_col': ['row_1_of_2nd_col', 'row_2_of_2nd_col']}

Fields:

['header_1st_col', 'header_2nd_col', 'header_3rd_col']

Also support Parser of multi-lines string representation tables, input example:

| INSERT INTO `CustomTable` (`column1`, `column2`, `column3`)
  VALUES
  ('value11', 'value12', 'value13'),
  ('value21', 'value22', 'value23'),
  ('value31', 'value32', 'value33');           |

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

sttable2-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sttable2-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

sttable2-0.0.1-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sttable2-0.0.1.tar.gz.

File metadata

  • Download URL: sttable2-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for sttable2-0.0.1.tar.gz
Algorithm Hash digest
SHA256 34012e50c762ea42782878f8d5e8913964531788cf4676b89177ca0ac405d765
MD5 cad96a70ff7b50d4aaed9dbc050db008
BLAKE2b-256 836f5cde1875fd0ca1e8068287d65f1c53145c365d32f82cd49a04ffce9d50b8

See more details on using hashes here.

File details

Details for the file sttable2-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sttable2-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for sttable2-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ddcab9f6b015d978ac7f5544149ae8f1ff1fb2f7096894f682b075e5b034470
MD5 1f7353293e8ced60ae7d520d23f7ea5a
BLAKE2b-256 a21d65c86d83431a19535f28241430ccd472dc4b4a935756e82b33823a1fd392

See more details on using hashes here.

File details

Details for the file sttable2-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: sttable2-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for sttable2-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c14a24b4e4432b26eaf1ba50719bd7b6785912950ba513f3dafa0f8f66a0a7f4
MD5 7cd7fa406170c5f48df340fef023ddca
BLAKE2b-256 add7da232b77cf0f8816c1357783f288b2ba442dbd6a74edcb2ddceac8155320

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page