aboutsummaryrefslogtreecommitdiffstats
path: root/app/PluginInterface.py
blob: 6492ed151af4d62da5246dba3f69c62cf6144c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from abc import ABC, abstractmethod
from typing import Any

from app.Item import Item


class PluginInterface(ABC):
    def __init__(self, id: str, params: dict[str, Any]):
        self.id = id
        self.params = params

    @abstractmethod
    def process(self, source_id: str | None, items: list[Item]) -> list[Item]:
        pass