Seregon/PkgToolBox

Toolbox for analyzing and editing pkg application files for psp,ps3, ps4 and ps5, includes the most useful functions you might need.

Python/57.3 KB/No license
tools/utils.py
PkgToolBox / tools / utils.py
1from Utilities.Logger import Logger
2 
3 
4class bcolors:
5 HEADER = '\033[95m'
6 OKBLUE = '\033[94m'
7 OKCYAN = '\033[96m'
8 OKGREEN = '\033[92m'
9 WARNING = '\033[93m'
10 FAIL = '\033[91m'
11 ENDC = '\033[0m'
12 BOLD = '\033[1m'
13 UNDERLINE = '\033[4m'
14 
15 
16def print_aligned(name: str, text: str, color: str = ''):
17 print(f"{name:>20} {color}{bcolors.BOLD}{text}{bcolors.ENDC}")
18