Simple tool for making tables, no requirements. Check out example.py
The best way to get started is by using the cooltables.create_table()
function.
import cooltables
# Some two dimensional list
data = [
["First", "Row", "(header)"],
["Second", "Row", "data"],
["Third", "Row", "data"],
]
table = cooltables.create_table(data, theme=cooltables.THIN_THEME)
print(table)
This code produces the following output:
┌────────┬─────┬──────────┐
│ First │ Row │ (header) │
├────────┼─────┼──────────┤
│ Second │ Row │ data │
│ Third │ Row │ data │
└────────┴─────┴──────────┘