Skip to content

a simple, fast, lightweight table with pure Python3 (CPython) and no other dependencies. with mktable from HiradJF you can easily make tables in CLI.

License

Notifications You must be signed in to change notification settings

HiradJF/mktable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1.You need to make an instance by doing it like this: python your_table_name = mktable.Table(["first", "row"], ["Other", "Rows(Optional)"])

2.How to add rows? python your_table.add_row(["ABC","DEF"], ["Your", "Content"]) just include any row you want how many you want. 3.How to render and Use? use the render function like python table_list = your_table.render() or you can add arguements such as custom separators like this python render(self, h_sep_char = '-',v_sep_char ='|', connection_point = '+') and btw it returns a list you can str(your_table) to get the printable str or if you want to print it just do print(your_table) it automaticaly casts it to str.

    Argurments:
    connection point : the point where separators connect.
        default: table.connection_point = "+"
    v_sep_char : vertical separator character
        default: table.v_sep_char = "|"
    h_sep_char : vertical separator character
        default: table.h_sep_char = "-"

4.How to remove rows? call the function python table.remove_row(*index) like python table.remove_row(1, 5, 10) make sure you have that amount of rows or you will get index out of range error

About

a simple, fast, lightweight table with pure Python3 (CPython) and no other dependencies. with mktable from HiradJF you can easily make tables in CLI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages