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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fantable-1.6.tar.gz.
File metadata
- Download URL: fantable-1.6.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 |
f3b4131018b958845a3803cab15270e6475307d1869e40d44d4123fb691af2a0
|
|
| MD5 |
d3207105db02e20e57b52e8052767b47
|
|
| BLAKE2b-256 |
60669c65b67e60e75aa1721271a898733eef0da870914f46d55250e17400c37b
|
File details
Details for the file fantable-1.6-py3-none-any.whl.
File metadata
- Download URL: fantable-1.6-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 |
8195ce546afa0e5a1542c451fac467ff6143b1d7e20d1e04842465055940f73b
|
|
| MD5 |
1060331e51811254a1c39a7d9fb5d127
|
|
| BLAKE2b-256 |
a6aa30717c4622460106ccb4882e0bd6293c2f0ab3be8fe18157743dfa993adc
|