mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 05:38:29 +03:00
20 lines
490 B
Python
20 lines
490 B
Python
from __future__ import annotations
|
|
from dataclasses import dataclass
|
|
from abc import abstractmethod, ABC
|
|
from metadata import Metadata
|
|
from step import Step
|
|
|
|
@dataclass
|
|
class Util(Step, ABC):
|
|
name = "util"
|
|
|
|
def __init__(self, config: dict) -> None:
|
|
Step.__init__(self)
|
|
|
|
# only for typing...
|
|
def init(name: str, config: dict) -> Util:
|
|
return super().init(name, config, Util)
|
|
|
|
@abstractmethod
|
|
def enrich(self, item: Metadata) -> Metadata: pass
|