-
Notifications
You must be signed in to change notification settings - Fork 0
Batch progress callback / event hook #2
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Feature Request
BatchProcessor.process_directory() currently runs silently. Add a progress callback:
def on_progress(current: int, total: int, path: str, result: ExtractionResult):
print(f"[{current}/{total}] {path}: {'OK' if result.data else 'FAILED'}")
processor.process_directory("./docs/", schema=InvoiceSchema, on_progress=on_progress)Motivation
Useful for long-running batch jobs and integration with progress bars.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers