Table Builder For Python
Project description
Fantable - Table Builder For Python
Author: Sptty Chan (Fanda)
Github & Examples: https://github.com/sptty-chan/fantable
Example Table:
from fantable import Table # import
create_table = Table(title="Daftar Hero Mobile Legends") # Title hanya optional
create_table.column("no", "nama hero", "role", "tipe damage") # Set Column
create_table.tab_row("01", "gusion", "assasin", "magic damage") # Menambah baris
create_table.tab_row("02", "kagura", "mage", "magic damage")
create_table.tab_row("03", "jhonson", "tank", "magic damage")
create_table.tab_row("04", "lesley", "marksman", "phisical damage")
create_table.commit() # Commit table
print(create_table) # Print table
Example Live:
from fantable import Live # import
from fantable import Table
import time
def descript(): # make description for Live
desc = Table()
desc.column("time1", "time2", "time3", "time4", "time5")
desc.tab_row(str(time.time()), str(time.time()), str(time.time()), str(time.time()), str(time.time()))
desc.tab_row(str(time.time()), str(time.time()), str(time.time()), str(time.time()), str(time.time()))
desc.tab_row(str(time.time()), str(time.time()), str(time.time()), str(time.time()), str(time.time()))
desc.commit()
return desc
screen = Live(refresh=True):
while True:
screen.render(description=descript())
time.sleep(0.2)
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
fantable-1.6.tar.gz
(4.6 kB
view hashes)
Built Distribution
fantable-1.6-py3-none-any.whl
(4.8 kB
view hashes)