Module pyboiler.internal.color.colors
Functions
def parse(string: str)
Classes
class Background (*args, **kwds)
-
Background codes
Expand source code
class Background(ColorEnum): """Background codes""" RESET = 49 b = BLACK = 40 r = RED = 41 g = GREEN = 42 y = YELLOW = 43 e = BLUE = 44 m = MAGENTA = 45 c = CYAN = 46 w = WHITE = 47 lb = L_BLACK = LIGHT_BLACK = 100 lr = L_RED = LIGHT_RED = 101 lg = L_GREEN = LIGHT_GREEN = 102 ly = L_YELLOW = LIGHT_YELLOW = 103 le = L_BLUE = LIGHT_BLUE = 104 lm = L_MAGENTA = LIGHT_MAGENTA = 105 lc = L_CYAN = LIGHT_CYAN = 106 lw = L_WHITE = LIGHT_WHITE = 107
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class B (*args, **kwds)
-
Background codes
Expand source code
class Background(ColorEnum): """Background codes""" RESET = 49 b = BLACK = 40 r = RED = 41 g = GREEN = 42 y = YELLOW = 43 e = BLUE = 44 m = MAGENTA = 45 c = CYAN = 46 w = WHITE = 47 lb = L_BLACK = LIGHT_BLACK = 100 lr = L_RED = LIGHT_RED = 101 lg = L_GREEN = LIGHT_GREEN = 102 ly = L_YELLOW = LIGHT_YELLOW = 103 le = L_BLUE = LIGHT_BLUE = 104 lm = L_MAGENTA = LIGHT_MAGENTA = 105 lc = L_CYAN = LIGHT_CYAN = 106 lw = L_WHITE = LIGHT_WHITE = 107
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class BG (*args, **kwds)
-
Background codes
Expand source code
class Background(ColorEnum): """Background codes""" RESET = 49 b = BLACK = 40 r = RED = 41 g = GREEN = 42 y = YELLOW = 43 e = BLUE = 44 m = MAGENTA = 45 c = CYAN = 46 w = WHITE = 47 lb = L_BLACK = LIGHT_BLACK = 100 lr = L_RED = LIGHT_RED = 101 lg = L_GREEN = LIGHT_GREEN = 102 ly = L_YELLOW = LIGHT_YELLOW = 103 le = L_BLUE = LIGHT_BLUE = 104 lm = L_MAGENTA = LIGHT_MAGENTA = 105 lc = L_CYAN = LIGHT_CYAN = 106 lw = L_WHITE = LIGHT_WHITE = 107
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class Back (*args, **kwds)
-
Background codes
Expand source code
class Background(ColorEnum): """Background codes""" RESET = 49 b = BLACK = 40 r = RED = 41 g = GREEN = 42 y = YELLOW = 43 e = BLUE = 44 m = MAGENTA = 45 c = CYAN = 46 w = WHITE = 47 lb = L_BLACK = LIGHT_BLACK = 100 lr = L_RED = LIGHT_RED = 101 lg = L_GREEN = LIGHT_GREEN = 102 ly = L_YELLOW = LIGHT_YELLOW = 103 le = L_BLUE = LIGHT_BLUE = 104 lm = L_MAGENTA = LIGHT_MAGENTA = 105 lc = L_CYAN = LIGHT_CYAN = 106 lw = L_WHITE = LIGHT_WHITE = 107
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class ColorEnum (*args, **kwds)
-
Base color enum class
Expand source code
@unique class ColorEnum(Enum): """Base color enum class""" def code(self): return f"\033[{self.value}m"
Ancestors
- enum.Enum
Subclasses
Methods
def code(self)
class ColorWrapper (idx: int, tag: str, val: Any = None)
-
Children of this class must have slots defined
Expand source code
class ColorWrapper(slot_storage): __slots__ = ("idx", "tag", "val") def __init__(self, idx: int, tag: str, val: Any = None): self.idx: int self.tag = tag self.val = val def __str__(self) -> str: return f"{type(self).__name__} tag: {self.tag}"
Ancestors
Instance variables
var idx
var tag
var val
Inherited members
class Foreground (*args, **kwds)
-
Foreground codes
Expand source code
class Foreground(ColorEnum): """Foreground codes""" RESET = 39 b = BLACK = 30 r = RED = 31 g = GREEN = 32 y = YELLOW = 33 e = BLUE = 34 m = MAGENTA = 35 c = CYAN = 36 w = WHITE = 37 lb = L_BLACK = LIGHT_BLACK = 90 lr = L_RED = LIGHT_RED = 91 lg = L_GREEN = LIGHT_GREEN = 92 ly = L_YELLOW = LIGHT_YELLOW = 93 le = L_BLUE = LIGHT_BLUE = 94 lm = L_MAGENTA = LIGHT_MAGENTA = 95 lc = L_CYAN = LIGHT_CYAN = 96 lw = L_WHITE = LIGHT_WHITE = 97
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class F (*args, **kwds)
-
Foreground codes
Expand source code
class Foreground(ColorEnum): """Foreground codes""" RESET = 39 b = BLACK = 30 r = RED = 31 g = GREEN = 32 y = YELLOW = 33 e = BLUE = 34 m = MAGENTA = 35 c = CYAN = 36 w = WHITE = 37 lb = L_BLACK = LIGHT_BLACK = 90 lr = L_RED = LIGHT_RED = 91 lg = L_GREEN = LIGHT_GREEN = 92 ly = L_YELLOW = LIGHT_YELLOW = 93 le = L_BLUE = LIGHT_BLUE = 94 lm = L_MAGENTA = LIGHT_MAGENTA = 95 lc = L_CYAN = LIGHT_CYAN = 96 lw = L_WHITE = LIGHT_WHITE = 97
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class FG (*args, **kwds)
-
Foreground codes
Expand source code
class Foreground(ColorEnum): """Foreground codes""" RESET = 39 b = BLACK = 30 r = RED = 31 g = GREEN = 32 y = YELLOW = 33 e = BLUE = 34 m = MAGENTA = 35 c = CYAN = 36 w = WHITE = 37 lb = L_BLACK = LIGHT_BLACK = 90 lr = L_RED = LIGHT_RED = 91 lg = L_GREEN = LIGHT_GREEN = 92 ly = L_YELLOW = LIGHT_YELLOW = 93 le = L_BLUE = LIGHT_BLUE = 94 lm = L_MAGENTA = LIGHT_MAGENTA = 95 lc = L_CYAN = LIGHT_CYAN = 96 lw = L_WHITE = LIGHT_WHITE = 97
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class Fore (*args, **kwds)
-
Foreground codes
Expand source code
class Foreground(ColorEnum): """Foreground codes""" RESET = 39 b = BLACK = 30 r = RED = 31 g = GREEN = 32 y = YELLOW = 33 e = BLUE = 34 m = MAGENTA = 35 c = CYAN = 36 w = WHITE = 37 lb = L_BLACK = LIGHT_BLACK = 90 lr = L_RED = LIGHT_RED = 91 lg = L_GREEN = LIGHT_GREEN = 92 ly = L_YELLOW = LIGHT_YELLOW = 93 le = L_BLUE = LIGHT_BLUE = 94 lm = L_MAGENTA = LIGHT_MAGENTA = 95 lc = L_CYAN = LIGHT_CYAN = 96 lw = L_WHITE = LIGHT_WHITE = 97
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLACK
var BLUE
var CYAN
var GREEN
var LIGHT_BLACK
var LIGHT_BLUE
var LIGHT_CYAN
var LIGHT_GREEN
var LIGHT_MAGENTA
var LIGHT_RED
var LIGHT_WHITE
var LIGHT_YELLOW
var L_BLACK
var L_BLUE
var L_CYAN
var L_GREEN
var L_MAGENTA
var L_RED
var L_WHITE
var L_YELLOW
var MAGENTA
var RED
var RESET
var WHITE
var YELLOW
var b
var c
var e
var g
var lb
var lc
var le
var lg
var lm
var lr
var lw
var ly
var m
var r
var w
var y
class Style (*args, **kwds)
-
Style codes
Expand source code
class Style(ColorEnum): """Style codes""" r = RESET = 0 b = BOLD = 1 d = DIM = 2 i = ITALIC = 3 u = UNDERLINE = 4 l = BLINK = 5 v = REVERSE = 7 h = HIDE = 8 s = STRIKE = 9 n = NORMAL = 22
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLINK
var BOLD
var DIM
var HIDE
var ITALIC
var NORMAL
var RESET
var REVERSE
var STRIKE
var UNDERLINE
var b
var d
var h
var i
var l
var n
var r
var s
var u
var v
class S (*args, **kwds)
-
Style codes
Expand source code
class Style(ColorEnum): """Style codes""" r = RESET = 0 b = BOLD = 1 d = DIM = 2 i = ITALIC = 3 u = UNDERLINE = 4 l = BLINK = 5 v = REVERSE = 7 h = HIDE = 8 s = STRIKE = 9 n = NORMAL = 22
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLINK
var BOLD
var DIM
var HIDE
var ITALIC
var NORMAL
var RESET
var REVERSE
var STRIKE
var UNDERLINE
var b
var d
var h
var i
var l
var n
var r
var s
var u
var v
class ST (*args, **kwds)
-
Style codes
Expand source code
class Style(ColorEnum): """Style codes""" r = RESET = 0 b = BOLD = 1 d = DIM = 2 i = ITALIC = 3 u = UNDERLINE = 4 l = BLINK = 5 v = REVERSE = 7 h = HIDE = 8 s = STRIKE = 9 n = NORMAL = 22
Ancestors
- ColorEnum
- enum.Enum
Class variables
var BLINK
var BOLD
var DIM
var HIDE
var ITALIC
var NORMAL
var RESET
var REVERSE
var STRIKE
var UNDERLINE
var b
var d
var h
var i
var l
var n
var r
var s
var u
var v