Skip to content

This simple Python script converts CSV files into Markdown-formatted tables. It's useful for creating easy-to-read tables in your Markdown files or GitHub repositories.

License

Notifications You must be signed in to change notification settings

niaka3dayo/csv-to-markdown-table

Repository files navigation

CSV to Markdown Table Converter

This simple Python script converts CSV files into Markdown-formatted tables. It's useful for creating easy-to-read tables in your Markdown files or GitHub repositories.

Features

  • Convert multiple CSV files in a directory to Markdown-formatted tables
  • Save the converted tables as text files in a specified output directory

Prerequisites

  • Python 3.9 or higher
  • Docker (optional, if using the Dockerized version)

Usage

Standalone Python Script

  1. Clone this repository:
git clone https://github.com/Nayuengin/csv-to-markdown-table.git
cd csv-to-markdown-table
  1. Install the required Python packages:
pip install -r requirements.txt
  1. Place your CSV files in the csv directory.

  2. Run the script:

python csv_to_markdown_table.py
  1. The converted Markdown tables will be saved as text files in the output directory.

Dockerized Version

  1. Clone this repository:
git clone https://github.com/Nayuengin/csv-to-markdown-table.git
cd csv-to-markdown-table
  1. Build the Docker image:
docker compose build
  1. Place your CSV files in the csv directory.

  2. Run the Docker container:

docker compose up
  1. The converted Markdown tables will be saved as text files in the output directory.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

This simple Python script converts CSV files into Markdown-formatted tables. It's useful for creating easy-to-read tables in your Markdown files or GitHub repositories.

Topics

Resources

License

Stars

Watchers

Forks