Rich tables in Python: Using Table, add_column, and add_row

Rich tables in Python: Using Table, add_column, and add_row

Create beautiful tables in Python with Rich:

from rich.table import Table
t = Table()

# call once per column:

t.add_column('A') 
# call once per row with string args, one for each column
t.add_row('10', '20', '30') 

# print it!

c = Console()
c.print(t)