deep.utils
A collection of util functions to perform common or repeated actions.
RepeatedTimer
Repeat function
every interval
seconds.
Source code in deep/utils.py
__init__(name, interval, function, *args, **kwargs)
Create a new RepeatTimer.
:param name: the name of the timer :param interval: the time in seconds between each execution :param function: the function to repeat :param args: the arguments for the function :param kwargs: the kwargs for the function
Source code in deep/utils.py
start()
snapshot_id_as_hex_str(snapshot_id)
str2bool(string)
Convert a string to a boolean.
:param string: the string to convert :return: True, if string is yes, true, t or 1. (case-insensitive)