import unstructured_client
from unstructured_client.models import operations, shared
s = unstructured_client.UnstructuredClient(
api_key_auth="YOUR_API_KEY",
)
res = s.general.partition(request=operations.PartitionRequest(
partition_parameters=shared.PartitionParameters(
files=shared.Files(
content='0x2cC94b2FEF'.encode(),
file_name='your_file_here',
),
split_pdf_page_range=[
1,
10,
],
strategy=shared.Strategy.AUTO,
),
))
if res.elements is not None:
# handle response
pass