mirror of
https://github.com/OVERLORD7F/SVMU.git
synced 2025-10-01 21:52:47 +03:00
- Beggining of implementing new menus and text using "Rich" library
btw main.py is ~ 50 lines now 0_o
This commit is contained in:
@@ -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')
|
Reference in New Issue
Block a user