The watcher.common.utils Module

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

Previous topic

The watcher.common.service Module

Next topic

The watcher.db.api Module

Project Source

This Page