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.5.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file fantable-1.5.tar.gz
.
File metadata
- Download URL: fantable-1.5.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b31b4f5ddee684d7d5e395b3d509db1ce84f1c30a875f9e9a3b183b11563900d |
|
MD5 | 949df9d55e4e6aec8a314e2e26dd7e8a |
|
BLAKE2b-256 | 3cbf3dca34734130fb32519d676baab7e3996bf7451fc38daf2849a3eb33a801 |
File details
Details for the file fantable-1.5-py3-none-any.whl
.
File metadata
- Download URL: fantable-1.5-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed60502d2a65e43580d8c39e07c7e0a429a4124a94273c0d690adf171e3aa7b6 |
|
MD5 | f7164e9f98596a03f7b73fcc24e3233b |
|
BLAKE2b-256 | b306f83a902e3bc2788c2fb2a48e37bded8b6d2af549c74b2119a194da1603c0 |