File tree Expand file tree Collapse file tree 7 files changed +24
-30
lines changed Expand file tree Collapse file tree 7 files changed +24
-30
lines changed Original file line number Diff line number Diff line change 11lockVersion: 2.0.0
22id: 8b5fa338-9106-4734-abf0-e30d67044a90
33management:
4- docChecksum: bac3524113e4b9ed02bfae0e65ccb42b
4+ docChecksum: 940cbfd3d076c56d2c04a8413abb0e1d
55 docVersion: 1.1.25
6- speakeasyVersion: 1.552 .0
7- generationVersion: 2.610.0
8- releaseVersion: 0.38.1
9- configChecksum: 5cf155e8e24250488657515211359819
6+ speakeasyVersion: 1.568 .0
7+ generationVersion: 2.632.2
8+ releaseVersion: 0.37.2
9+ configChecksum: c18311f5449d4c3ab52058b6c2ab8715
1010 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111 repoSubDirectory: .
1212 installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,7 +16,7 @@ features:
1616 acceptHeaders: 3.0.0
1717 additionalDependencies: 1.0.0
1818 constsAndDefaults: 1.0.5
19- core: 5.19.0
19+ core: 5.19.3
2020 defaultEnabledRetries: 0.2.0
2121 enumUnions: 0.1.0
2222 envVarSecurityUsage: 0.3.2
@@ -32,7 +32,7 @@ features:
3232 openEnums: 1.0.1
3333 responseFormat: 1.0.1
3434 retries: 3.0.2
35- sdkHooks: 1.0.1
35+ sdkHooks: 1.1.0
3636 serverIDs: 3.0.0
3737 unions: 3.0.4
3838 uploadStreams: 1.0.0
Original file line number Diff line number Diff line change @@ -410,30 +410,18 @@ Certain SDK methods accept file objects as part of a request body or multi-part
410410
411411``` python
412412from unstructured_client import UnstructuredClient
413- from unstructured_client.models import shared
414413
415414
416415with UnstructuredClient() as uc_client:
417416
418- res = uc_client.general.partition(request = {
419- " partition_parameters" : {
420- " files" : {
421- " content" : open (" example.file" , " rb" ),
422- " file_name" : " example.file" ,
423- },
424- " split_pdf_page_range" : [
425- 1 ,
426- 10 ,
427- ],
428- " vlm_model" : shared.VLMModel.GPT_4O ,
429- " vlm_model_provider" : shared.VLMModelProvider.OPENAI ,
430- },
417+ res = uc_client.workflows.run_workflow(request = {
418+ " workflow_id" : " e7054f23-ce92-4bf1-a1d7-7cf9cb14d013" ,
431419 })
432420
433- assert res.elements is not None
421+ assert res.job_information is not None
434422
435423 # Handle response
436- print (res.elements )
424+ print (res.job_information )
437425
438426```
439427<!-- End File uploads [file-upload] -->
Original file line number Diff line number Diff line change @@ -1025,6 +1025,6 @@ Based on:
10251025- OpenAPI Doc
10261026- Speakeasy CLI 1.552.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
10271027### Generated
1028- - [ python v0.38.1 ] .
1028+ - [ python v0.37.2 ] .
10291029### Releases
1030- - [ PyPI v0.38.1 ] https://pypi.org/project/unstructured-client/0.38.1 - .
1030+ - [ PyPI v0.37.2 ] https://pypi.org/project/unstructured-client/0.37.2 - .
Original file line number Diff line number Diff line change @@ -22,14 +22,17 @@ with UnstructuredClient() as uc_client:
2222
2323 res = uc_client.general.partition(request = {
2424 " partition_parameters" : {
25+ " chunking_strategy" : " by_title" ,
2526 " files" : {
2627 " content" : open (" example.file" , " rb" ),
2728 " file_name" : " example.file" ,
2829 },
30+ " split_pdf_cache_tmp_data_dir" : " <value>" ,
2931 " split_pdf_page_range" : [
3032 1 ,
3133 10 ,
3234 ],
35+ " strategy" : shared.Strategy.AUTO ,
3336 " vlm_model" : shared.VLMModel.GPT_4O ,
3437 " vlm_model_provider" : shared.VLMModelProvider.OPENAI ,
3538 },
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ generation:
1414 oAuth2ClientCredentialsEnabled : false
1515 oAuth2PasswordEnabled : false
1616python :
17- version : 0.38.1
17+ version : 0.37.2
1818 additionalDependencies :
1919 dev :
2020 deepdiff : ' >=6.0'
Original file line number Diff line number Diff line change 11[project ]
22name = " unstructured-client"
3- version = " 0.38.1 "
3+ version = " 0.37.2 "
44description = " Python Client SDK for Unstructured API"
55authors = [{ name = " Unstructured" },]
66readme = " README-PYPI.md"
77requires-python = " >=3.9.2"
88dependencies = [
99 " aiofiles >=24.1.0" ,
1010 " cryptography >=3.1" ,
11+ " httpcore >=1.0.9" ,
1112 " httpx >=0.27.0" ,
1213 " nest-asyncio >=1.6.0" ,
1314 " pydantic >=2.11.2" ,
@@ -52,6 +53,8 @@ pythonpath = ["src"]
5253
5354[tool .mypy ]
5455disable_error_code = " misc"
56+ explicit_package_bases = true
57+ mypy_path = " src"
5558
5659[[tool .mypy .overrides ]]
5760module = " typing_inspect"
Original file line number Diff line number Diff line change 33import importlib .metadata
44
55__title__ : str = "unstructured-client"
6- __version__ : str = "0.38.1 "
6+ __version__ : str = "0.37.2 "
77__openapi_doc_version__ : str = "1.1.25"
8- __gen_version__ : str = "2.610.0 "
9- __user_agent__ : str = "speakeasy-sdk/python 0.38.1 2.610.0 1.1.25 unstructured-client"
8+ __gen_version__ : str = "2.632.2 "
9+ __user_agent__ : str = "speakeasy-sdk/python 0.37.2 2.632.2 1.1.25 unstructured-client"
1010
1111try :
1212 if __package__ is not None :
You can’t perform that action at this time.
0 commit comments