Python Client SDK Generated by Speakeasy
Project description
unstructured-client
Not ready for primetime yet - come back soon!
SDK Installation
pip install unstructured-client
SDK Example Usage
import unstructured_client
from unstructured_client.models import shared
s = unstructured_client.UnstructuredClient(
security=shared.Security(
api_key_auth="YOUR_API_KEY",
),
)
req = shared.PartitionParameters(
coordinates=False,
encoding='utf-8',
files=shared.PartitionParametersFiles(
content='distinctio'.encode(),
files='quibusdam',
),
gz_uncompressed_content_type='application/pdf',
hi_res_model_name='yolox',
include_page_breaks=False,
ocr_languages=[
'eng',
],
output_format='application/json',
pdf_infer_table_structure=False,
skip_infer_table_types=[
'pdf',
],
strategy='hi_res',
xml_keep_tags=False,
)
res = s.general.partition(req)
if res.partition_200_application_json_any is not None:
# handle response
Available Resources and Operations
General
- partition - Pipeline 1
Pagination
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
returned response object will have a Next
method that can be called to pull down the next group of results. If the
return value of Next
is None
, then there are no more pages to be fetched.
Here's an example of one such pagination call:
Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributions
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!
SDK Created by Speakeasy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for unstructured-client-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 455172b3510638f034682c73f9c49836164cfb5b28ede5368875c408966938b0 |
|
MD5 | 0279322a5dcd20b6db30aeace4594118 |
|
BLAKE2b-256 | 1eb183c8c6f394d45ed95635becb6dc61e6d56e40ccb4dd5d053edd793564437 |
Hashes for unstructured_client-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb4c1783c30b6bd81ea287d1067e551df7a0bdddaf6c3289fdfc3f11b48f771 |
|
MD5 | 7f84dc71da36a6fd92737b012587b15e |
|
BLAKE2b-256 | fa34f2ba0f8da5d023610356a10a8a2bc57eafb68c5259ee4d90027b46aa2260 |