flowbber.components.source

Module implementating the Source base class.

All custom Flowbber sources must extend from the Source class.

Classes

  • 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

Inheritance diagram of Source

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