blatann.utils package
- blatann.utils.setup_logger(name=None, level='DEBUG')
- blatann.utils.repr_format(obj, *args, **kwargs)
Helper function to format objects into strings in the format of: ClassName(param1=value1, param2=value2, …)
- Parameters:
obj – Object to get the class name from
args – Optional tuples of (param_name, value) which will ensure ordering during format
kwargs – Other keyword args to populate with
- Returns:
String which represents the object
- class blatann.utils.Stopwatch
Bases:
object- start()
- stop()
- mark()
- property is_running
- property start_time
- property stop_time
- property elapsed
- class blatann.utils.SynchronousMonotonicCounter(start_value=0)
Bases:
objectUtility class which implements a thread-safe monotonic counter
- next()
- blatann.utils.snake_case_to_capitalized_words(string)
- class blatann.utils.IntEnumWithDescription(_, description='')
-
An enumeration.
- property description