aboutsummaryrefslogtreecommitdiffstats
path: root/src/PluginInterface.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/PluginInterface.py')
-rw-r--r--src/PluginInterface.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/PluginInterface.py b/src/PluginInterface.py
new file mode 100644
index 0000000..c6be538
--- /dev/null
+++ b/src/PluginInterface.py
@@ -0,0 +1,18 @@
+from abc import ABC, abstractmethod
+from typing import Any
+
+from Item import Item
+
+
+class PluginInterface(ABC):
+ def __init__(self, id: str, params: dict[str, Any]):
+ self.id = id
+ self.params = params
+
+ @abstractmethod
+ def validate_input_n(self, n: int) -> bool:
+ raise NotImplemented("abstract method not implemented")
+
+ @abstractmethod
+ def process(self, inputs: list[list[Item]]) -> list[Item]:
+ pass