A handy package to use ansi escape sequences without having to know all possible sequences by heart
From pip :
pip3 install oxansi
From source :
git clone https://github.com/0x68616469/oxansi/
from oxansi import Long as ansi
# Print "/!\ ERROR : " in red
print(f"{ansi.red}/!\\ ERROR : {ansi.reset}404 Not found")
# Print "Hello World" in cyan with white background
print(f"{ansi.background.white}{ansi.cyan}Hello World")