Update colors.py

This commit is contained in:
Richard Mwewa
2022-11-24 23:25:41 +02:00
committed by GitHub
parent ab70a10d19
commit 87f287bfb9

View File

@@ -1,5 +1,6 @@
import psutil
import platform
from richt.tree import Tree
from datetime import datetime
@@ -8,22 +9,22 @@ from datetime import datetime
# colors.py is the reason why users get to choose whether to enable/disable colors
# delete this file, the entire program breaks
system_info = [("RAM", f"{str(round(psutil.virtual_memory().total / (1024.0 **3)))}GB"),
("Processor",platform.processor),
("Node", platform.node),
("Release", platform.release),
("Version", platform.version),
("Processor",platform.processor),
("Architecture", platform.architecture)
]
start_banner = f"""
OCTOSUITE © 2023 Richard Mwewa
("Architecture", platform.architecture),
("Version", platform.version)]
first_banner = f"""
OCTOSUITE © 2022 Richard Mwewa
{datetime.now().strftime('%A %d %B %Y, %H:%M:%S%p')}
"""
print(start_banner)
print(f"{platform.system()}")
"""
print(first_banner)
system_tree = Tree(f"{platform.system()}")
for system_key, system_value in system_info:
print(f"├─ {system_key}: {system_value()}")
system_tree.add(f"{system_key}: {system_value()}")
xprint(system_tree)
print("\n")
while True:
try:
@@ -46,3 +47,4 @@ while True:
except KeyboardInterrupt:
exit(f"[!] Process interrupted with Ctrl+C.")