- class cumin.color.ColoredType(name, bases, namespace, **kwargs)¶
Metaclass to define a new type that dynamically adds static methods to its classes.
- class cumin.color.Colored¶
Class to manage colored output.
Available methods are dynamically added based on the keys of the
ColoredType.COLORSdictionary. For each color a method with the color name is available to color any object with that specific color code.
- disabled = False¶
switch to globally control the coloring. Set it to :py:const`True` to disable all coloring.
- static _color(color_code, obj)¶
Color the given object, unless coloring is globally disabled.