Initial commit, win32 and darwin support only

This commit is contained in:
Kat Inskip 2023-09-08 17:07:20 -07:00 committed by Kat Inskip
commit 40df439299
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
14 changed files with 527 additions and 0 deletions

12
custom_print.py Normal file
View file

@ -0,0 +1,12 @@
import termcolor
"""
Print a key-value pair with a key and value coloured differently.
:param key: The key to print
:param value: The value to print
:param newline: Whether to print a newline after the value
:returns: None
"""
def kv_print(key: str, value: str, newline: bool = False) -> None:
print(termcolor.colored(key, "cyan") + ": " + termcolor.colored(value, "white"), end="\n" if newline else " ")