Skip to main content

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 :


Follow me

Project details


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)

Uploaded Source

Built Distribution

oxtables-0.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page