Skip to main content

Python Client SDK Generated by Speakeasy

Project description

unstructured-client

SDK Installation

pip install unstructured-client

SDK Example Usage

import unstructured
from unstructured.models import shared

s = unstructured.Unstructured(
    security=shared.Security(
        api_key_auth="YOUR_API_KEY",
    ),
)

req = shared.PartitionParameters(
    coordinates=False,
    encoding='utf-8',
    files=shared.PartitionParametersFiles(
        content='corrupti'.encode(),
        files='provident',
    ),
    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

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

unstructured-client-0.1.3.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unstructured_client-0.1.3-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file unstructured-client-0.1.3.tar.gz.

File metadata

  • Download URL: unstructured-client-0.1.3.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for unstructured-client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2b92283b7107089156603ab919968cb1f128cf77052ce533655b81f5d9921249
MD5 44d5b42bf8b87b02468cce89773552c6
BLAKE2b-256 7a9146a304d88683c9ceaba1d4967525e5dc52811b00691cade97aa66c87d811

See more details on using hashes here.

File details

Details for the file unstructured_client-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for unstructured_client-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d63a7f4aa8125a5c55afc0ea492517349be2fc9020006449ff065b24e1684ca
MD5 c8e6943676299292d1b9acf59dc7f411
BLAKE2b-256 7122b64ac928d14858410ed019842eb7b33e15075cb3c75fb6f3f30cf093de48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page