A Handy Package to Draw ASCII Tables
Project description
0xTables
A handy package to draw ASCII tables easily and effortlessly.
Installation :
From pip :
pip3 install oxtables
From source :
git clone https://github.com/0x68616469/oxtables/
Example :
from oxtables import Table
th = Table(style="-",
border_color="black",
text_color="white",
align="left",
spacer=True,
first_row="default",
max_length=50)
th.add(["Argument", "Description", "Default"])
th.add(["style", "Change border ascii style", "-"])
th.add(["border_color", "Change the border color", "black"])
th.add(["text_color", "Change the text color", "white"])
th.add(["align", "Text align (left/center/right)", "left"])
th.add(["spacer", "Print the spacer between rows (True/False)", "True"])
th.add(["first_row", "Change first row styling (border/side/none/default)", "default"])
th.add(["max_length", "Max text length", "50"])
th.draw()
Result :
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
oxtables-0.0.1.tar.gz
(3.4 kB
view hashes)