Utils
- nimbus_splash.utils.cprint(string: str, color: str)
Prints colorised output to screen
- Parameters:
string (str) – String to print
color (str {red, green, yellow, blue, magenta, cyan, white}) – String name of color
- Return type:
None
- nimbus_splash.utils.flatten_recursive(to_flat: list[list]) list
Flatten a list of lists recursively.
- Parameters:
to_flat (list)
- Returns:
Input list flattened to a single list
- Return type:
list
- nimbus_splash.utils.get_envvar(var_str: str) str
Gets specified environment variable If undefined then returns empty string
- Parameters:
var_str (str) – String name of environment variable
- Returns:
Value of environment variable, or empty is not defined
- Return type:
str