Skip to main content

a simpler tool for convert markdown table to pandas

Project description

mdpd

mdpd is a simpler tool for convert markdown table to pandas. This tool is a lightweight tool for testing a code, so note that we are not validating the user's input.

usage

# pip install mdpd
import mdpd

df = mdpd.from_md("""
+------------+-------+
| id         | score |
+------------+-------+
| 1          | 15    |
| 2          | 11    |
| 3          | 11    |
| 4          | 20    |
+------------+-------+
""")

print(df)
#   id score
# 0  1    15
# 1  2    11
# 2  3    11
# 3  4    20

accepted table patterns

| Syntax    | Description |
| --------- | ----------- |
| Header    | Title       |
| Paragraph | Text        |
+------------+-------------+
| Syntax     | Description |
+------------+-------------+
| Header     | Title       |
| Paragraph  | Text        |
+------------+-------------+
| Syntax    | Description |
| :-------- | ----------: |
| Header    | Title       |
| Paragraph | Text        |

contribute

If you have suggestions for features or improvements to the code, please feel free to create an issue or PR.

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

mdpd-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

mdpd-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file mdpd-0.1.0.tar.gz.

File metadata

  • Download URL: mdpd-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.13 Darwin/22.5.0

File hashes

Hashes for mdpd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f2557daed02027a371dc93d1c24da227220e7a0a3aec8e126c0a51f027f7dad
MD5 be9abdc6eae8ef441b2498a9e7e6ff75
BLAKE2b-256 5aa59def9b4a163acbbd5ee3ad89fa5993a03883dd74573555b8da115f6736e0

See more details on using hashes here.

File details

Details for the file mdpd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mdpd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.13 Darwin/22.5.0

File hashes

Hashes for mdpd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75d0b89d7ffcb747d16f50e25da2ab3a2dd090799b39e933423b64704261d581
MD5 2c6cb8f5d8e22f0753fb4f0c830f6540
BLAKE2b-256 45f8c8faceeac6a1bd608c4106c385e6dcb2ee787b925e4d36db65633d98f18f

See more details on using hashes here.

Supported by

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