Repository navigation
feat(extract): add client.extract_file and CLI binary file support - #141
Merged
Merged
Conversation
…r documents and images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
client.extract_fileandasync_client.extract_fileforPOST /api/v1/extract/file(multipart/form-data), accepting Word (.docx), PDF (.pdf), and image (.png,.jpg,.jpeg,.webp) files (path | str | bytes | BinaryIO).lenz extract <path>toclient.extract_filewhen<path>is an existing.docx,.pdf,.png,.jpg,.jpeg, or.webpfile on disk (catchingOSErrorsuch asENAMETOOLONGwhen literal text ends in a binary extension).validation_errorandunsupported_languageerror codes anderrors[]on/extract/fileby registeringextract/filein_REVIEW_FAMILY.openapi.json(2026-10-11canonical schema),README.md,CHANGELOG.md(keeping package version at3.6.0), and unit tests.codex review) + Opus (claude --model opus) completed on722a7d6; all findings addressed inHEAD.Post-deploy actions and prod testing
lenzhq/Lenz#1585(POST /api/v1/extract/file) before tagging/publishingv3.6.0.lenz extract sample.pdf --locateandclient.extract_file("sample.docx")againsthttps://lenz.io/api/v1/extract/file.