Is there any python equivalent for perl\'s
print color \'red\'; print ; print color \'reset\';
available in python?
What about the ansicolors library? You can simple do:
from colors import color, red, blue # common colors print(red('This is red')) print(blue('This is blue')) # colors by name or code print(color('Print colors by name or code', 'white', '#8a2be2'))