flowbber.loaders.source

Class to load Flowbber Source plugins.

Functions

flowbber.loaders.source.register(key)

Register a plugin locally.

This method is expected to be used as a decorator. It allows to register a plugin locally without having to create a full Python package to use entrypoints.

Usage:

from flowbber.loaders import source
from flowbber.components.source import Source

@source.register('my_source')
class MySource(Source):
    def collect(self):
        return {'my_value': 1000}

Same apply for aggregators and sinks.

Classes

class flowbber.loaders.source.SourcesLoader

Sources plugins loader class.

Inheritance

Inheritance diagram of SourcesLoader