plugin_base.py (Source)

1
2
3
4
5
6
7
class PluginBase:

    registry = []

    def __init_subclass__(cls, **kwargs):
        super().__init_subclass__(**kwargs)
        cls.registry.append(cls)