Delete src/pyxtend/pyxtend_registry.py
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user