flowbber.components.source
Module implementating the Source base class.
All custom Flowbber sources must extend from the Source class.
Source
:
Main base class to implement a Source.
-
class
flowbber.components.source.
Source
(index, type_, id_, optional=False, timeout=None, config=None)
Main base class to implement a Source.
Inheritance
-
collect
()
Collect some arbitrary data.
All sources subclasses must implement this abstract method.
- Returns
- A dictionary with the data collected by this source.
- Return type
- dict