Skip to content

Commit fcf8f6b

Browse files
committed
feat: add DocSplitterClient and GenericUnstractClient support
Add support for two new API patterns: 1. Doc-splitter APIs (job_id-based workflow) 2. Generic Unstract APIs (execution_id-based workflow) ## New Features ### DocSplitterClient - File upload with form-data support - Job status polling with configurable intervals - Binary file download (zip files) - Methods: upload(), get_job_status(), download_result(), wait_for_completion() ### GenericUnstractClient - Dynamic endpoint support (invoice, contract, receipt, etc.) - Execution ID-based tracking - Multipart form-data uploads with 'files' field - Methods: process(), get_result(), wait_for_completion(), check_status() ## Implementation Details - Both clients follow existing patterns for consistency - Comprehensive test coverage (55 new tests) - Full type safety with proper error handling - Updated README with usage examples and API documentation - All clients share the same ApiHubClientException ## Testing - 94/94 tests passing - Comprehensive coverage of success/failure paths - Performance benchmarks included - Real-world usage scenarios tested
1 parent 877986c commit fcf8f6b

File tree

7 files changed

+1848
-7
lines changed

7 files changed

+1848
-7
lines changed

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,5 @@ This document contains critical information about working with this codebase. Fo
6565
- Follow existing patterns
6666
- Test thoroughly
6767
- Use Context7 mcp server if available to get latest documents.
68+
69+
- Don't mention claude code any where in code, commit messages or in PR description or comment

0 commit comments

Comments
 (0)