Update colors.py

This commit is contained in:
Richard Mwewa
2022-11-25 01:30:27 +02:00
committed by GitHub
parent cfa032f7cb
commit b30ad16719

View File

@@ -8,20 +8,30 @@ from datetime import datetime
# This file gets called first at start up before any other file gets called
# 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()),
import psutil
import platform
from datetime import datetime
# This file is responsible for enabling/disabling colors in OctoSuite
# This file gets called first at start up before any other file gets called
# 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"),
("Node", platform.node()),
("Release", platform.release()),
("Architecture", platform.architecture()),
("Version", platform.version())]
("Version", platform.version()),
("Processor", platform.processor()),
("Architecture", platform.architecture())]
first_banner = f"""
OCTOSUITE © 2022 Richard Mwewa
OCTOSUITE © 2023 Richard Mwewa
{datetime.now().strftime('%A %d %B %Y, %H:%M:%S%p')}
"""
print(first_banner)
system_tree = Tree(f"{platform.system()}")
system_tree = Tree(platform.system())
for system_key, system_value in system_info:
system_tree.add(f"{system_key}: {system_value}")
xprint(system_tree)
@@ -47,4 +57,4 @@ while True:
except KeyboardInterrupt:
exit(f"[!] Process interrupted with Ctrl+C.")