slickml.utils._format
#
Module Contents#
Classes#
Colors for foreground and background. |
- class slickml.utils._format.Colors[source]#
Bases:
slickml.base.ExtendedEnum
Colors for foreground and background.
- names()#
Returns a list of color names as string
- values()#
Returns a list of color values as string
- to_dict()#
Returns a dictionary of all colors name-value pairs as string
Examples
>>> from slickml.utils import Colors >>> Colors.RED >>> str(Colors.BLUE) >>> Colors.names() >>> Colors.values() >>> Colors.to_dict()
- BLUE = [94m#
- BOLD = [1m#
- B_Black = [40m#
- B_Blue = [44m#
- B_Cyan = [46m#
- B_DarkGray = [100m#
- B_Default = [49m#
- B_Green = [42m#
- B_LightBlue = [104m#
- B_LightCyan = [106m#
- B_LightGray = [47m#
- B_LightGreen = [102m#
- B_LightMagenta = [105m#
- B_LightRed = [101m#
- B_LightYellow = [103m#
- B_Magenta = [45m#
- B_Red = [41m#
- B_White = [107m#
- B_Yellow = [43m#
- CYAN = [96m#
- DARKCYAN = [36m#
- END = [0m#
- F_Black = [30m#
- F_Blue = [34m#
- F_Cyan = [36m#
- F_DarkGray = [90m#
- F_Default = [39m#
- F_Green = [32m#
- F_LightBlue = [94m#
- F_LightCyan = [96m#
- F_LightGray = [37m#
- F_LightGreen = [92m#
- F_LightMagenta = [95m#
- F_LightRed = [91m#
- F_LightYellow = [93m#
- F_Magenta = [35m#
- F_Red = [31m#
- F_White = [97m#
- F_Yellow = [33m#
- GREEN = [92m#
- PURPLE = [95m#
- RED = [91m#
- UNDERLINE = [4m#
- YELLOW = [93m#
- __dir__()#
Returns all members and all public methods
- __format__(format_spec)#
Returns format using actual value type unless __str__ has been overridden.
- __hash__()#
Return hash(self).
- __reduce_ex__(proto)#
Helper for pickle.
- name()#
The name of the Enum member.
- classmethod to_dict() Dict[str, str] #
Returns a dictionary of all Enum name-value pairs as string.
- Returns:
Dict[str, str]
- value()#
The value of the Enum member.