flowbber.loaders.sink

Module implementating Sink base class.

All custom Flowbber sinks must extend from the Sink class.

Functions

flowbber.loaders.sink.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.sink.SinksLoader

Sinks plugins loader class.

Inheritance

Inheritance diagram of SinksLoader