Skip to content

Commit

Permalink
feat: added interface for the processing strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
le1nux committed Jan 5, 2025
1 parent 3d79cc4 commit 8f41a74
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from abc import ABC
from typing import Any


class ProcessingStrategyIF(ABC):
def process(self, item: Any) -> dict[str, Any] | None:
raise NotImplementedError

def __enter__(self):
raise NotImplementedError

def finalize(self):
raise NotImplementedError

def __exit__(self, exc_type, exc_value, traceback):
raise

0 comments on commit 8f41a74

Please sign in to comment.