Skip to content

Latest commit

 

History

History
192 lines (121 loc) · 6.09 KB

File metadata and controls

192 lines (121 loc) · 6.09 KB

0.44.1

Features

  • Add min_attempts and absolute_max_elapsed_time_ms fields to BackoffStrategy. min_attempts is the minimum number of retry attempts that must fire before max_elapsed_time is honored; defaults to 0 (preserves existing behavior). absolute_max_elapsed_time_ms caps when a new retry can start (does not interrupt in-flight requests); defaults to None. Together these close a short-circuit where a single slow first attempt could exhaust the retry budget before any retry fired.

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.

0.43.4

Enhancements

Features

Fixes

  • Route split-PDF partition_async() result collection through awaited async hook dispatch instead of creating a nested event loop in a worker thread. Sync-only hooks on the async path now run on a worker thread, so hook code that depends on event-loop-thread contextvars or thread-local state should pass that state explicitly.
  • Add cancellation cleanup for in-flight split-PDF chunk tasks and preserve existing sync partition() split-PDF behavior with lazy executor creation.

0.43.2

Enhancements

  • Switch PyPI publishing to GitHub trusted publishing so releases can publish via OIDC without a long-lived PYPI_TOKEN secret.

Features

Fixes

  • Align release automation, package metadata, and generator config on 0.43.2 for the trusted-publishing release flow.

0.43.1

Enhancements

  • Add split-PDF observability with operation-aware batch planning, timeout, cancellation, and completion logs.
  • Make long-running integration tests stream live progress, timings, and backend failure context for split and single partition phases.

Features

Fixes

  • Preserve chunk-local transport retries for split-PDF execution even when SDK-level retries disable connection-error retries for top-level requests.
  • Harden split-PDF timeout and cleanup paths against closed event loops and cancelled chunk tasks.
  • Stabilize hi_res split integration coverage by using a smaller derived multi-page fixture instead of the flaky full layout-parser-paper.pdf path for equivalence and caching checks.

0.42.12

Enhancements

Features

Fixes

  • Retry on all httpx.TransportError subclasses (including ReadError, WriteError, ConnectError, RemoteProtocolError, and all timeout types) when retry_connection_errors=True. Previously only ConnectError, RemoteProtocolError, and TimeoutException were retried — ReadError (TCP connection reset mid-response) was treated as permanent.

0.42.11

Enhancements

Features

Fixes

  • Retry on httpx.RemoteProtocolError (e.g. "Server disconnected without sending a response") when retry_connection_errors=True. Previously, mid-request server crashes were treated as permanent errors and not retried.

0.42.5

Enhancements

  • Support for on-demand jobs via CreateJob API
  • New Read-only APIs GetTemplate and ListTemplates

Features

Fixes

0.42.4

Enhancements

  • Bump dependencies to account for vulnerabilities in pypdf < 6.1.3

Features

Fixes

0.42.3

Enhancements

Features

  • Enable arbitrary dictionary inputs for CreateSourceConnectorConfig and CreateDestinationConnectorConfig. This decouples us from the backend schemas. Users can send new connector config fields without having to upgrade their client.

Fixes

0.42.2

Enhancements

Features

  • Enable arbitrary inputs for SourceConnectorType and DestinationConnectorType. This lets the client support new connector types without having to upgrade.

Fixes

0.42.1

Enhancements

Features

Fixes

  • potential issue referencing models before declaration (commit by @mfbx9da4)

0.42.0

Enhancements

Features

Fixes

  • Fix some environments failing to split pdfs with Can't patch loop of type <class 'uvloop.Loop'>, remove usage of nest-asyncio
  • Remove some operations under client.users that are not fully ready yet

0.41.0

Enhancements

Features

  • Provide a base UnstructuredClientError to capture every error raised by the SDK. Note that some exceptions such as SDKError now have more information in the message field. This will impact any users who rely on string matching in their error handling.

Fixes

0.37.3

Enhancements

  • Improve PDF validation error handling by introducing FileValidationError base class for better error abstraction

Features

Fixes

  • Replace RequestError with PDFValidationError for invalid PDF files to provide more accurate error context

0.37.0

Enhancements

Features

Fixes

  • Throws appropriate error message in case the given PDF file is invalid (corrupted or encrypted).

0.30.0

Enhancements

Features

  • Add Unstructured Platform APIs to manage source and destination connectors, workflows, and workflow runs WARNING: This is a breaking change for the use of non-default server_url settings in the client usage. To set the custom URL for the client, use the the server_url parameter in a given operation:
elements = client.general.partition(
    request=operations.PartitionRequest(
        partition_parameters=shared.PartitionParameters(
            files=shared.Files(
                content=doc_file,
                file_name="your_document.pdf",
            ),
            strategy=shared.Strategy.FAST,
        )
    ),
    server_url="your_server_url",
)

Fixes

0.26.1

Enhancements

Features

Fixes

  • Use the configured server_url for our split page "dummy" request

0.26.0

Enhancements

  • Switch to a httpx based client instead of requests
  • Switch to poetry for dependency management
  • Add client side parameter checking via Pydantic or TypedDict interfaces

Features

  • Add partition_async for a non blocking alternative to partition

Fixes

  • Address some asyncio based errors in pdf splitting logic