The ansicolor package in Python has not been updated in a long time and doesn’t have any documentation on PyPI. Therfore, I migrated my Python scripts to ansicolors (with an s
at the end). Only a few steps are neccessary:
First, replace
from ansicolor import red
by
from colors import red
Additionally, bold=True
is called style="bold"
in ansicolors, hence you need to replace
red("msg", bold=True)
by
red("msg", style="bold")