[ 源代码: colorclass ]
软件包:python3-colorclass(2.2.2-3)
ANSI color text library for Python
Yet another ANSI color text library for Python. Provides "auto colors" for dark/light terminals. Works on Linux, OS X, and Windows.
In Python 2 this library subclasses unicode, while on Python 3 it subclasses str. Different colors are chosen using curly-bracket tags, such as {red}{/red}. For a list of available colors, call colorclass.list_tags(). Auto colors are toggled by calling set_light_background() and set_dark_background().
This package provides the Python 3 module.