Color
Colors module.
- class cumin.color.ColoredType(name, bases, namespace, /, **kwargs)[source]
Bases:
ABCMetaMetaclass to define a new type that dynamically adds static methods to its classes.
- class cumin.color.Colored[source]
Bases:
objectClass 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.Examples:
Colored.green(object)
- disabled = False
switch to globally control the coloring. Set it to :py:const`True` to disable all coloring.
- Type: