Skip to main content

mdtable2csv (Convert .md file to .csv)

Convert markdown tables to csvs!

Install requirements

pip install mdtable2csv

Usage

Command Line

Use the following command to convert <filename>.md to <filename>.csv :

mdtable2csv <filename>.md

And then you will see a <filename>.csv in the same folder.

Python

from mdtable2csv import mdtable2csv
mdtable2csv("temp.md")

And then you will see a <filename>.csv in the same folder.

Examples

table.md

# table.md :
First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell

$ mdtable2csv table.md

# table.csv :
First Header,Second Header
Content Cell,Content Cell
Content Cell,Content Cell

abc.md

# abc.md :
|   |  a | b  | c  |
|---|----|----|----|
| 1 | a1 | b1 | c1 |
| 2 | a2 | b2 | c2 |
| 3 | a3 | b3 | c3 |

$ mdtable2csv abc.md

# abc.csv :
 ,a,b,c
1,a1,b1,c1
2,a2,b2,c2
3,a3,b3,c3

Please give me a star if you find this tool useful, Thank you.

Metadata

Release files for mdtable2csv 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdtable2csv 0.1.0
File Size Uploaded
mdtable2csv-0.1.0.tar.gz 89.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mdtable2csv 0.1.0
File Interpreter ABI Platform
mdtable2csv-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 94.7 kB

Release files / mdtable2csv-0.1.0.tar.gz

Download URL mdtable2csv-0.1.0.tar.gz
Size 89.7 kB
Tags Source
SHA-256 checksum
How to use checksums
72f8d95f7725bb4be4c886faf6454698674fb39f7c4aec019be5acc932384fe8
BLAKE2b-256 checksum
How to use checksums
6be94cf5c3563bbd859556e310010a132629eb52882a21328f7486e91e0a7929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / mdtable2csv-0.1.0-py3-none-any.whl

Download URL mdtable2csv-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30c6c5b27c76e9a64edaef15895b145fd77921b41a0a3af69a186251f857ba78
BLAKE2b-256 checksum
How to use checksums
a894b3bca1cb5c1c695ecb26e8ee6767cedae7738e4c90c7a1c90b29a44c4ac7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page