Convert Markdown tables to CSV
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mdtable2csv-0.1.0.tar.gz.
File metadata
- Download URL: mdtable2csv-0.1.0.tar.gz
- Upload date:
- Size: 89.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72f8d95f7725bb4be4c886faf6454698674fb39f7c4aec019be5acc932384fe8
|
|
| MD5 |
3975c6aa881d0a535752c359ff34b868
|
|
| BLAKE2b-256 |
6be94cf5c3563bbd859556e310010a132629eb52882a21328f7486e91e0a7929
|
File details
Details for the file mdtable2csv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mdtable2csv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30c6c5b27c76e9a64edaef15895b145fd77921b41a0a3af69a186251f857ba78
|
|
| MD5 |
29099bf7575669124f3708571d3c5e7b
|
|
| BLAKE2b-256 |
a894b3bca1cb5c1c695ecb26e8ee6767cedae7738e4c90c7a1c90b29a44c4ac7
|