Color¶
Colors module.
- class cumin.color.ColoredType(name, bases, namespace, **kwargs)[source]¶
Bases:
ABCMeta
Metaclass to define a new type that dynamically adds static methods to its classes.
- class cumin.color.Colored[source]¶
Bases:
object
Class to manage colored output.
Available methods are dynamically added based on the keys of the
ColoredType.COLORS
dictionary. 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: