/TermUI

A python lib that provides a simple UI for the terminal.

Primary LanguagePython

Termy

Termy is for creating a simple and attractive UI for the terminal, ranging from clickable links to simple buttons, termy has it all!

a simple demo with (the whl file hasn't been created yet so just use the termy.py code lol)

from termy import *
import os
import webbrowser

ter = Termy()

def option_1():
  webbrowser.open(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
  

def option_2():
    ter.head_text("TermyUI", color="red", style=["bold"])
    ter.p("Write 'python -m termy' in the terminal for all the functions and commands for using termy!", color="blue", style=["bold"])

options = [
    ("Option 1", option_1),
    ("Option 2", option_2),
]
choice = ter.btn("Select an option:", options)