https://github.com/chet-ag09/termy
a python lib that provides a simple UI for the terminal
https://github.com/chet-ag09/termy
python python-lib python-library terminal terminal-ui
Last synced: 3 months ago
JSON representation
a python lib that provides a simple UI for the terminal
- Host: GitHub
- URL: https://github.com/chet-ag09/termy
- Owner: chet-ag09
- License: mit
- Created: 2024-06-10T08:19:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T14:09:56.000Z (over 1 year ago)
- Last Synced: 2025-05-13T19:23:47.640Z (8 months ago)
- Topics: python, python-lib, python-library, terminal, terminal-ui
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TermyUI
### Termy is for creating a simple and attractive UI for the terminal, ranging from clickable links to simple buttons, termy has it all!
[Visit PyPI page](https://pypi.org/project/termyUI/)
This is a big project for me hence, I need help maintaining it, if you are interested, shoot an email at - agchetna4@gmail.com
a simple demo with TermyUI.
First, you need to install Termy, for that run the following command -
```pip install termyUI``
```
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)
```