flowtool.style¶
Flowtool console output wrappers.
-
flowtool.style.
color_function
(name)[source]¶ Creates a function that decorates a string with the named color code.
-
flowtool.style.
effect_function
(name)[source]¶ Creates a function that decorates a string with the named effect (bold, underline, blink, etc).
-
flowtool.style.
echo_function
(style_func)[source]¶ Creates a function that echos (a list of) arguments using style_func.
-
flowtool.style.
debug_function
(style_func)[source]¶ Creates a function that echos (a list of) arguments using style_func only if bool(DEBUG_OUTPUT) evals to True.
-
class
flowtool.style.
ConvenienceFunctions
(black, red, green, yellow, blue, magenta, cyan, white, dim, bold, blink, underline, reverse)¶ Bases:
tuple
-
black
¶ Alias for field number 0
-
blink
¶ Alias for field number 10
-
blue
¶ Alias for field number 4
-
bold
¶ Alias for field number 9
-
count
(value) → integer -- return number of occurrences of value¶
-
cyan
¶ Alias for field number 6
-
dim
¶ Alias for field number 8
-
green
¶ Alias for field number 2
-
index
(value[, start[, stop]]) → integer -- return first index of value.¶ Raises ValueError if the value is not present.
-
magenta
¶ Alias for field number 5
-
red
¶ Alias for field number 1
-
reverse
¶ Alias for field number 12
-
underline
¶ Alias for field number 11
-
white
¶ Alias for field number 7
-
yellow
¶ Alias for field number 3
-