Repository navigation
Releases
v0.47.0
What's Changed
Features
- Expose the verdict the API declares on an error as typed attributes on every HTTP error:
retryable,error_type,error_reasonandaudience. Errors the API raises deliberately publish these fields next todetail, eg a 503 OCR timeout with"retryable": false. Callers no longer need to parseerr.bodyto read them. Each attribute isNonewhen the body is not JSON, the field is absent, or its value has the wrong type. The retry loop readsretryablewith the same parser. - Add
skip_preflighttoCreateWorkflowandUpdateWorkflow. Set it toTrueto skip the job preflight check for a workflow's jobs; on update, leaving it unset keeps the current value.WorkflowInformation.skip_preflightreports the workflow's current setting. For a one-off job, set"skip_preflight": truein therequest_dataJSON passed tojobs.create_job.
Fixes
- Deserialize jobs the preflight check rejected.
JobStatusandJobProcessingStatusgainREJECTED; previouslyjobs.get_jobraised on a rejected job, and one rejected job failed the wholejobs.list_jobspage.JobInformation.statusandJobDetails.processing_statusnow also accept a status this SDK version does not know, returning it as a plainstrinstead of raising. Known statuses are still returned as enum members, but the fields are typedUnion[JobStatus, str]andUnion[JobProcessingStatus, str], so type-checked code that reads.valueor.namefrom them needs to handle thestrcase. - Expose why a job was rejected.
JobNodeDetailsgainsfailure_category(aPreflightFailureCategory, or a plainstrfor a category this SDK version does not know) andfailure_reason, set on the node that failed preflight injobs.get_job_details. Previously both were dropped during deserialization. - Bump locked
certifito 2026.10.19, which removes the emSign ECC Root CA - G3 root after eight eMudhra intermediate CA private keys were compromised.requestsandhttpxtrust certifi's bundle and do not check revocation, so with the older bundle they accepted certificates chaining to that root.certifiis now also a direct dependency at>=2026.10.19, so pip installs pick up the new bundle too. - Long partitions behind a NAT or load balancer idle timeout could never return, leaving the client waiting for its full read timeout. SDK-owned HTTP clients now enable TCP keepalive, including split-PDF requests. Connections made through an HTTP(S)/SOCKS proxy are not covered. Configure probes with
UNSTRUCTURED_CLIENT_TCP_KEEPALIVE_IDLE(60 seconds),UNSTRUCTURED_CLIENT_TCP_KEEPALIVE_INTERVAL(30 seconds), andUNSTRUCTURED_CLIENT_TCP_KEEPALIVE_COUNT(5); setUNSTRUCTURED_CLIENT_TCP_KEEPALIVE=0orfalseto disable. Caller-supplied clients are unchanged.
Full Changelog: v0.46.4...v0.47.0
v0.46.4
What's Changed
- chore(none): decommission dead Speakeasy generator scaffolding by @CyMule in #349
- test(none): pass input_files in the custom DAG job integration test by @awalker4 in #354
- fix: keep the server_url path when splitting PDFs by @CyMule in #355
- fix: don't retry an API error that declares itself non-retryable by @CyMule in #358
Full Changelog: v0.46.2...v0.46.4
v0.46.2
0.46.2
Fixes
Accept the API URL the Transform Platform hands you as server_url. The app's API Keys page and the docs give you https://platform-api.transform.unstructured.io/api/v1, which works with curl but 404'd every Platform call in the SDK: the URL cleaner only stripped a path for unstructuredapp.io hosts, so the /api/v1 survived and the operation's own /api/v1/jobs/ was appended on top, producing /api/v1/api/v1/jobs/. Hosts under unstructured.io are now recognized too, and are matched on domain boundaries so a lookalike host like unstructuredapp.io.example.com keeps its path and scheme. A server_url passed to an individual operation is cleaned as well — previously only the client-level URL was, so client.jobs.list_jobs(request={}, server_url=...) still 404'd.
v0.46.1
What's Changed
- fix: raise on an empty HTTP-200 split chunk in NDJSON mode (0.46.1) by @badGarnet in #348
Full Changelog: v0.46.0...v0.46.1
v0.46.0
What's Changed
- feat: NDJSON elements-file mode for partition (0.46.0) by @badGarnet in #347
Full Changelog: v0.45.0...v0.46.0
v0.45.0
Features
- Make the split-PDF
httpx.AsyncClientconnection-pool limits configurable via env vars:UNSTRUCTURED_CLIENT_MAX_CONNECTIONS(default100),UNSTRUCTURED_CLIENT_MAX_KEEPALIVE_CONNECTIONS(default20), andUNSTRUCTURED_CLIENT_KEEPALIVE_EXPIRY(default5.0s). Defaults match httpx, so behavior is unchanged unless set. Useful when deploying behind a connect-time-only load balancer (e.g. Kubernetes ClusterIP without a mesh) where shorter keepalives force connections to redistribute across backend pods. - Honor the standard
SSL_CERT_FILE/REQUESTS_CA_BUNDLEenv vars to point the split-PDFhttpx.AsyncClientat a custom trust store, so a single env-var setting applies uniformly across Python tooling. - Add
UNSTRUCTURED_CLIENT_TLS_CLIENT_CERTandUNSTRUCTURED_CLIENT_TLS_CLIENT_KEYenv vars to wire an mTLS client certificate into the split-PDFhttpx.AsyncClient(single PEM, or split cert + key files). - Extend the split-PDF
event=plan_createdlog to include the resolved pool limits and trust-store / mTLS mode so the active config is visible in production logs.
v0.44.1
Features
- Add
min_attemptsandabsolute_max_elapsed_time_msfields toBackoffStrategy.min_attemptsis the minimum number of retry attempts that must fire beforemax_elapsed_timeis honored; defaults to0(preserves existing behavior).absolute_max_elapsed_time_mscaps when a new retry can start (does not interrupt in-flight requests); defaults toNone. Together these close a short-circuit where a single slow first attempt could exhaust the retry budget before any retry fired.
v0.44.0
0.44.0
Breaking changes
- Removed deprecated connector config models from the SDK (e.g.
S3SourceConnectorConfig,AzureDestinationConnectorConfig). Pass connector configs as plain dicts with arbitrary fields. The SDK is no longer coupled to backend connector schemas — new fields work without an SDK upgrade.
v0.43.2
v0.43.1
What's Changed
- Migrate to uv, drop 3.9 and 3.10, fix tests by @PastelStorm in #335
- SDK correctness and resilience improvements by @PastelStorm in #336
New Contributors
- @PastelStorm made their first contribution in #335
Full Changelog: v0.42.12...v0.43.1