- Beggining of implementing new menus and text using "Rich" library

btw main.py is ~ 50 lines now 0_o
This commit is contained in:
OVERLORD7F
2025-05-16 17:53:57 +03:00
parent da756a8ba6
commit d7477da9b6
6 changed files with 65 additions and 34 deletions

View File

@@ -1,4 +1,6 @@
import requests
import os
from rich.prompt import Prompt
def data_pools(base_url , api_key): #output data pool info
url= f"http://{base_url}//api/data-pools/"
@@ -17,3 +19,5 @@ def data_pools(base_url , api_key): #output data pool info
print("-" * 44)
else:
print(f"Failed to retrieve data {response.status_code} ")
Prompt.ask("[green_yellow bold]Press ENTER to proceed.. :right_arrow_curving_down:")
os.system('cls' if os.name=='nt' else 'clear')