unstructured-client
Python Client SDK for Unstructured API
What it is and what it does
unstructured-client is a Python HTTP client for the Unstructured Platform API, a cloud service that extracts structured data from unstructured documents. It wraps the Platform's Partition and Workflow endpoints, allowing you to send documents to the API and retrieve parsed, structured output. The SDK handles authentication, retries, error handling, and file uploads.
You use it by instantiating an UnstructuredClient, then calling methods on its resource objects (e.g., destinations, partitions) to submit documents and retrieve results. The SDK depends on httpx for HTTP transport, pydantic for data validation, and pypdf/pypdfium2 for local PDF handling. It supports custom retry strategies and detailed error reporting via UnstructuredClientError and its subclasses.
Use it for:
- Extract structured data from PDFs, images, or other documents by sending them to the Unstructured Platform API.
- Build document processing pipelines that parse invoices, contracts, or forms and return JSON-structured output.
- Integrate document parsing into a larger ETL workflow using the Workflow Endpoint.
- Handle file uploads and manage API responses with built-in retry logic and error handling.
- Prototype document extraction without maintaining local parsing infrastructure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
HTTP client SDK for the Unstructured Platform API that processes documents and extracts structured data from unstructured content.
Yes, if you need to extract structured data from unstructured documents and are willing to use a cloud API. The SDK is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. Requires Python 3.11+. Verify that the free tier and API pricing fit your volume and use case before committing.
Install
unstructured-client on PyPI
pip
pip install unstructured-clientuv
uv add unstructured-clientpoetry
poetry add unstructured-clientInstalling unstructured-client
Before you install
Low friction installation with a pure-Python wheel. Active maintenance with a release 9 days ago. Requires Python 3.11 or later. Seven runtime dependencies are all standard HTTP and data-handling libraries (httpx, pydantic, pypdf, pypdfium2, requests-toolbelt, aiofiles, httpcore).
License in practice
MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install unstructured-client
from unstructured_client import UnstructuredClient
with UnstructuredClient() as client:
res = client.destinations.create_connection_check_destinations(
request={"destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96"}
)
Requires Python 3.11 or later. API key or credentials for the Unstructured Platform are needed to authenticate requests.
Verify before relying
- Whether the free tier (1000 pages per day for 14 days) is sufficient for typical use cases.
- Performance characteristics when processing large documents or high-volume batches.
- Supported file formats beyond PDF (mentioned in dependencies but not detailed in excerpt).
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — aiofiles, httpcore, httpx, pydantic, pypdf, pypdfium2, requests-toolbelt |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,893,676/month — #1,581 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: unstructured_client-0.46.1-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
unstructuredIngests and pre-processes unstructured…
permissive · top 5,000 on PyPI
unstructured-inferenceRuns inference on layout-parsing and…
permissive · top 5,000 on PyPI
langchain-unstructuredIntegrates LangChain with Unstructured to…
permissive · top 15,000 on PyPI
unstructured-ingestUnstructured Ingest is a local ETL pipeline…
permissive · top 15,000 on PyPI
fathom-pythonA Python SDK for the Fathom External API that…
unclear · top 15,000 on PyPI
llama-cloudPython SDK for LlamaParse, an enterprise OCR…
permissive · top 1,000 on PyPI
google-cloud-documentaiPython client library for Google Cloud Document…
permissive · top 5,000 on PyPI
cohere-compass-sdkParse documents via a remote Compass Parser API…
unclear · top 15,000 on PyPI
Unified-python-sdkPython SDK client for the Unified.to API,…
unclear · top 15,000 on PyPI