Metadata-Version: 2.5
Name: markdown-table-gen
Version: 0.1.0
Summary: A Python library for easily generating Markdown tables
Project-URL: Homepage, https://github.com/mr-sherman/md-table-gen
Author: Mr. Sherman
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# MD Table Gen
A Python Library for Easily Generating Markdown Tables

## Purpose
This is a library to help you generate tables in markdown.  

### What it Does Do
Generates markdown tables given column headers and row data

### What it Does Not Do
Pretty print the tables

## Install
```
pip install markdown-table-gen
```

## How To Use It
 1. Import it an instantiate it by giving it the column names
 2. Add the rows
 3. Generate the text

### Can I get an example?
Yes, you can!
```
from markdown_table_gen import MDTableGenerator

m = MDTableGenerator(["h1", "h2", "h3"])
m.add_row(["11", "12", "13"])
m.add_row(["21", "22", "23"])
m.add_row(["31", "32", "33"])

print(m.make_table_string())
```

### What Else Do I Need to Know?
You need to know that the length of each row must match the length of the column headers.  If it doesn't match, then an ``IndexError`` exception is raised.
