# EzUI
A python module for easily creating a powerful and dynamic user interface in shell
![](https://github.com/Plunder283/ezui/blob/main/readme_assets/ui_exemple.png)
## How to use:
Here is a simple program who use it : (You can find it in the repo)
```python
import ezui
import sys
banner = """
______ _ _ _____
| ____| | | | |_ _|
| |__ ___| | | | | |
| __| |_ / | | | | |
| |____ / /| |__| |_| |_
|______/___|\____/|_____|
"""
def add(a, b):
return a + b
def say_hello():
print("Hello World!")
def sub(a, b):
return a - b
def exit():
sys.exit()
# This is the Menu elements
elements = [
("Hello World Function",say_hello),
("Additionner", add),
("Sub two operands", sub),
("Exit the programm", exit)
]
ezui.simple_menu(elements, banner, "default")
```
## Todo
- Create a title system ✅
- Find a way to know if the app is in foreground ❌
Raw data
{
"_id": null,
"home_page": "https://github.com/Plunder283/ezui",
"name": "ezui",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "ui,user interface,interface,GUI",
"author": "Plunder283",
"author_email": "plunder283@protonmail.com",
"download_url": "",
"platform": null,
"description": "# EzUI\r\nA python module for easily creating a powerful and dynamic user interface in shell\r\n\r\n![](https://github.com/Plunder283/ezui/blob/main/readme_assets/ui_exemple.png)\r\n\r\n## How to use:\r\n\r\nHere is a simple program who use it : (You can find it in the repo)\r\n```python\r\nimport ezui\r\nimport sys\r\n\r\nbanner = \"\"\"\r\n ______ _ _ _____ \r\n | ____| | | | |_ _|\r\n | |__ ___| | | | | | \r\n | __| |_ / | | | | | \r\n | |____ / /| |__| |_| |_ \r\n |______/___|\\____/|_____|\r\n \r\n\"\"\"\r\n\r\ndef add(a, b):\r\n return a + b\r\n\r\ndef say_hello():\r\n print(\"Hello World!\")\r\n\r\ndef sub(a, b):\r\n return a - b\r\n\r\ndef exit():\r\n sys.exit()\r\n\r\n# This is the Menu elements\r\nelements = [\r\n (\"Hello World Function\",say_hello),\r\n (\"Additionner\", add),\r\n (\"Sub two operands\", sub),\r\n (\"Exit the programm\", exit)\r\n]\r\n\r\nezui.simple_menu(elements, banner, \"default\")\r\n```\r\n\r\n## Todo\r\n - Create a title system \u2705\r\n - Find a way to know if the app is in foreground \u274c\r\n",
"bugtrack_url": null,
"license": "",
"summary": "A powerful and user-friendly Python library for creating dynamic command-line user interfaces.",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/Plunder283/ezui"
},
"split_keywords": [
"ui",
"user interface",
"interface",
"gui"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9ea7edcc57a54e0a1bb3d41115703b8ebb97a41c74103edebe85386ffc5922d4",
"md5": "bad1f2d2747dacb67132aa26d12e4836",
"sha256": "73d9818b36f544a20e5dd0514459bf8adb625088079f3887ec55d3e59341e638"
},
"downloads": -1,
"filename": "ezui-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bad1f2d2747dacb67132aa26d12e4836",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2974,
"upload_time": "2023-07-27T00:58:21",
"upload_time_iso_8601": "2023-07-27T00:58:21.554975Z",
"url": "https://files.pythonhosted.org/packages/9e/a7/edcc57a54e0a1bb3d41115703b8ebb97a41c74103edebe85386ffc5922d4/ezui-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-27 00:58:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Plunder283",
"github_project": "ezui",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ezui"
}