From b30ad16719bf84f689ef883ae6143a673b08444d Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:30:27 +0200 Subject: [PATCH] Update colors.py --- octosuite/colors.py | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/octosuite/colors.py b/octosuite/colors.py index 02805af..75531de 100644 --- a/octosuite/colors.py +++ b/octosuite/colors.py @@ -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.") - +