Convert Rich tables to Markdown tables
Project description
Rich2MD
This is a simple tool to convert Rich tables to Markdown tables.
Installation
pip install rich2md
Usage
There are two functions:
rich_table_to_df
– converts the RichTable
object to a Pandas DataFrame.rich_table_to_md_table
– converts the RichTable
object to a Markdown table and returns it as a string.
Example:
from rich.table import Table
from rich2md import rich_table_to_md_table
table = Table("A", "B")
table.add_row("my", "mom")
table.add_row("your", "dad")
table_md = rich_table_to_md_table(table)
print(table_md)
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
rich2md-0.1.0.tar.gz
(1.8 kB
view hashes)