{"id":21057021,"url":"https://github.com/kyoto7250/mdpolars_py","last_synced_at":"2026-05-15T18:34:40.739Z","repository":{"id":200101964,"uuid":"705125271","full_name":"kyoto7250/mdpolars_py","owner":"kyoto7250","description":"a simple tool for convert markdown table to polars in python3","archived":false,"fork":false,"pushed_at":"2024-01-01T11:57:56.000Z","size":56,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T02:15:05.780Z","etag":null,"topics":["development","markdown","polars","python3","test"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/mdpolars/","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}},"created_at":"2023-10-15T05:07:49.000Z","updated_at":"2024-06-07T22:59:56.000Z","dependencies_parsed_at":"2023-10-15T19:04:51.928Z","dependency_job_id":"d5a447ce-b303-4201-8e1e-69f8eb2a802a","html_url":"https://github.com/kyoto7250/mdpolars_py","commit_stats":null,"previous_names":["kyoto7250/mdpolars_py"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kyoto7250/mdpolars_py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpolars_py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpolars_py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpolars_py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpolars_py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyoto7250","download_url":"https://codeload.github.com/kyoto7250/mdpolars_py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoto7250%2Fmdpolars_py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","polars","python3","test"],"created_at":"2024-11-19T16:55:53.919Z","updated_at":"2026-05-15T18:34:40.703Z","avatar_url":"https://github.com/kyoto7250.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdpolars_py\na simple tool for convert markdown table to polars in python3.\nThis tool is a lightweight tool for testing a code, so note that we are not validating the user's input.\n\n[pandas version is here](https://github.com/kyoto7250/mdpd)\n\n## install\n```bash\npip install mdpolars\n```\n\n## usage\n\n```python\nimport polars as pl\nimport mdpolars\n\ndf = mdpolars.from_md(\"\"\"\n+------------+-------+\n| id         | score |\n+------------+-------+\n| 1          | 15    |\n| 2          | 11    |\n| 3          | 11    |\n| 4          | 20    |\n+------------+-------+\n\"\"\", schema=[(\"id\", pl.Int64), (\"score\", pl.Int64)])\n\nprint(df)\n# shape: (4, 2)\n# ┌─────┬───────┐\n# │ id  ┆ score │\n# │ --- ┆ ---   │\n# │ i64 ┆ i64   │\n# ╞═════╪═══════╡\n# │ 1   ┆ 15    │\n# │ 2   ┆ 11    │\n# │ 3   ┆ 11    │\n# │ 4   ┆ 20    │\n# └─────┴───────┘\n```\n\n```python\n# the header can be overwritten if the header exists\nimport mdpolars\ndf = mdpolars.from_md(\"\"\"\n+------------+-------+\n| id         | score |\n+------------+-------+\n| 1          | 15    |\n| 2          | 11    |\n| 3          | 11    |\n| 4          | 20    |\n+------------+-------+\n\"\"\", schema=[\"foo\", \"bar\"])\n\n# the default type is str.\nprint(df)\n# shape: (4, 2)\n# ┌─────┬─────┐\n# │ foo ┆ bar │\n# │ --- ┆ --- │\n# │ str ┆ str │\n# ╞═════╪═════╡\n# │ 1   ┆ 15  │\n# │ 2   ┆ 11  │\n# │ 3   ┆ 11  │\n# │ 4   ┆ 20  │\n# └─────┴─────┘\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%2Fmdpolars_py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyoto7250%2Fmdpolars_py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoto7250%2Fmdpolars_py/lists"}