zelotech / domain /extractor.py
matheusalencar's picture
first commit
1b64148
Raw History Blame Contribute Delete
240 Bytes
from typing import Literal, Protocol
Kind = Literal["pdf", "image"]
class TextExtractor(Protocol):
"""Contrato de extracao de texto de documentos (PDF ou imagem)."""
def extract(self, path: str, kind: Kind) -> str: ...