Skip to main content

1.You need to make an instance by doing it like this: python your_table_name = mktable.Table() and you can have arguements like : 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

5.How to use dictionaries? for importing from dict: python my_table.import_dict(my_dict, 'insert', index) #replace my_table with your table and my dict with your dictionary and replace index with an index(int) #index in default is 0 and only matters in 'index' method method can be either 'insert', 'append' or 'overwrite'.method must be string. and the method string is not case-sensetive methods: overwrite: overwrites all the rows in the table insert: inserts the dict from given index (0 if non given) append: appends the dict to the end of the table

for exporting to a dict: use this method: python my_table.export_dict() #returns a dict for assigning it to a new dict (if the variable already exists it will be overwritten): python my_dict = my_table.export_dict() and for adding it to a dict: python my_dict += my_table.export_dict()

Metadata

Release files for mktable 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mktable 0.1.0
File Size Uploaded
mktable-0.1.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mktable 0.1.0
File Interpreter ABI Platform
mktable-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / mktable-0.1.0.tar.gz

Download URL mktable-0.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
90dc5340c01276ac5dd0d4a5453a5054dedcb5e9d1905d28e68e92a58354ae81
BLAKE2b-256 checksum
How to use checksums
f63b083b61b50144204b90945a18eff6f324efec062722271298e0ea2ea73123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release files / mktable-0.1.0-py3-none-any.whl

Download URL mktable-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31e73b4e48446a7d6d3c739fc9b63222162b585bc01d52778aed25ee03574127
BLAKE2b-256 checksum
How to use checksums
d57c81a3f4048a330b820166f88f1e03a393654d67587c80e72320f8734484f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page