{"id":21057018,"url":"https://github.com/kyoto7250/mdpd","last_synced_at":"2025-05-15T23:33:42.564Z","repository":{"id":199060407,"uuid":"701641522","full_name":"kyoto7250/mdpd","owner":"kyoto7250","description":"a simple tool for convert markdown table to pandas","archived":false,"fork":false,"pushed_at":"2025-05-15T03:34:31.000Z","size":142,"stargazers_count":17,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T04:27:31.169Z","etag":null,"topics":["development","markdown","pandas","python3","test"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/mdpd/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kyoto7250.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-07T06:20:04.000Z","updated_at":"2025-05-15T03:34:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"653e9053-8941-402a-8282-ca32cd632f7b","html_url":"https://github.com/kyoto7250/mdpd","commit_stats":null,"previous_names":["kyoto7250/mdpd"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyoto7250","download_url":"https://codeload.github.com/kyoto7250/mdpd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254274592,"owners_count":22043552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","markdown","pandas","python3","test"],"created_at":"2024-11-19T16:55:52.741Z","updated_at":"2025-05-15T23:33:37.489Z","avatar_url":"https://github.com/kyoto7250.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdpd\n`mdpd` is a simpler tool for convert markdown table to pandas.\nThis tool is a lightweight tool for testing a code, so note that we are not validating the user's input.\n\n## install\n```bash\npip install mdpd\n```\n\n## usage\n\n```python\nimport mdpd\n\ndf = mdpd.from_md(\"\"\"\n+------------+-------+\n| id         | score |\n+------------+-------+\n| 1          | 15    |\n| 2          | 11    |\n| 3          | 11    |\n| 4          | 20    |\n+------------+-------+\n\"\"\")\n\nprint(df)\n#   id score\n# 0  1    15\n# 1  2    11\n# 2  3    11\n# 3  4    20\n```\n\n```python\n# the header can be overwritten if the header exists\nimport mdpd\ndf = mdpd.from_md(\"\"\"\n| 1          | 15    |\n| 2          | 11    |\n| 3          | 11    |\n| 4          | 20    |\n\"\"\", header=[\"id\", \"score\"])\n\nprint(df)\n#   id score\n# 0  1    15\n# 1  2    11\n# 2  3    11\n# 3  4    20\n```\n\n\n## accepted table patterns\n\n```markdown\n| Syntax    | Description |\n| --------- | ----------- |\n| Header    | Title       |\n| Paragraph | Text        |\n```\n\n```markdown\n+------------+-------------+\n| Syntax     | Description |\n+------------+-------------+\n| Header     | Title       |\n| Paragraph  | Text        |\n+------------+-------------+\n```\n\n```markdown\n| Syntax    | Description |\n| :-------- | ----------: |\n| Header    | Title       |\n| Paragraph | Text        |\n```\n\n```markdown\n| Header    | Title       |\n| Paragraph | Text        |\n```\n\n## contribute\nIf you have suggestions for features or improvements to the code, please feel free to create an issue or PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoto7250%2Fmdpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyoto7250%2Fmdpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoto7250%2Fmdpd/lists"}