Utilities and helper functions.
-
class watcher.common.utils.Struct[source]
Bases: dict
Specialized dict where you access an item like an attribute
>>> struct = Struct()
>>> struct['a'] = 1
>>> struct.b = 2
>>> assert struct.a == 1
>>> assert struct['b'] == 2