Metadata-Version: 2.1
Name: fantable
Version: 1.6
Summary: Table Builder For Python
Home-page: https://github.com/sptty-chan/fantable
Author: Sptty Chan
Author-email: sptty_chan@ccmail.uk
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt

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)


