Delete src/pyxtend/pyxtend_registry.py

This commit is contained in:
Lerking
2024-03-06 12:27:09 +01:00
committed by GitHub
parent 790fade4ad
commit 733420c697

View File

@@ -1,36 +0,0 @@
from logging import Logger
from typing import Optional, List
from model import Meta, Device
class IPyXtendRegistry(type):
plugin_registries: List[type] = list()
def __init__(cls, name, bases, attrs):
super().__init__(cls)
if name != 'PluginCore':
IPyXtendRegistry.plugin_registries.append(cls)
class PyXtendCore(object, metaclass=IPyXtendRegistry):
"""
Plugin core class
"""
meta: Optional[Meta]
def __init__(self, logger: Logger) -> None:
"""
Entry init block for plugins
:param logger: logger that plugins can make use of
"""
self._logger = logger
def invoke(self, **args) -> Device:
"""
Starts main plugin flow
:param args: possible arguments for the plugin
:return: a device for the plugin
"""
pass