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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file oxtables-0.0.1.tar.gz.

File metadata

  • Download URL: oxtables-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for oxtables-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cc753ab2ad067ecdc291b5cbd9a8a5472a9b8e0777cb05d75c10e83025d244a3
MD5 086d0cadb89ea943b08935890f31451f
BLAKE2b-256 b51723dbddb7a2b252ad4c4398a0c9336e011697c0fb668aad4ee347531ff2ab

See more details on using hashes here.

File details

Details for the file oxtables-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: oxtables-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for oxtables-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a28f9cea1a9f49cd319ee8c2247e07fea09eb20a39efe60049318f385e2f19d
MD5 525b0fbf3b594ed0eaa87137ab6b2051
BLAKE2b-256 3d0cb29cc9356a0baf24bba4c3329e61ab59c549db472eb247f70370bf175ec4

See more details on using hashes here.

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