fantable-1.6
توضیحات
Table Builder For Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fantable-1.6 |
| نام | fantable |
| نسخه کتابخانه | 1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sptty Chan |
| ایمیل نویسنده | sptty_chan@ccmail.uk |
| آدرس صفحه اصلی | https://github.com/sptty-chan/fantable |
| آدرس اینترنتی | https://pypi.org/project/fantable/ |
| مجوز | MIT |
Fantable - Table Builder For Python
============================================================
Author: [Sptty Chan (Fanda\)](https://www.facebook.com/profile.php?id=100024425583446)
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)
نحوه نصب
نصب پکیج whl fantable-1.6:
pip install fantable-1.6.whl
نصب پکیج tar.gz fantable-1.6:
pip install fantable-1.6.tar.gz