Skip to content

dnorhoj/CoolTables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoolTables

Simple tool for making tables, no requirements. Check out example.py

Usage

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     │
└────────┴─────┴──────────┘

Releases

No releases published

Packages

No packages published

Languages