diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 596a7342..cb79be0e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 8b5fa338-9106-4734-abf0-e30d67044a90 management: - docChecksum: bf57420eebd40f2b1d166092f01e3927 + docChecksum: 559aacf6828c62bd379326645382b3ba docVersion: 0.0.1 speakeasyVersion: internal - generationVersion: 2.225.2 - releaseVersion: 0.15.1 - configChecksum: 522a54d9ee1c9007d9986dcf21cb7fd1 + generationVersion: 2.228.1 + releaseVersion: 0.15.2 + configChecksum: c7f5587d10f16ad71c809e8627e64175 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git published: true features: python: - core: 4.4.0 + core: 4.4.1 examples: 2.81.3 globalSecurity: 2.83.1 globalServerURLs: 2.82.1 diff --git a/README.md b/README.md index f8bcf218..883344aa 100755 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ s = unstructured_client.UnstructuredClient( ## Custom HTTP Client -The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object. +The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object. For example, you could specify a header for every request that this sdk makes as follows: ```python diff --git a/RELEASES.md b/RELEASES.md index 4a2da889..30d89f88 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -324,4 +324,14 @@ Based on: ### Generated - [python v0.15.1] . ### Releases -- [PyPI v0.15.1] https://pypi.org/project/unstructured-client/0.15.1 - . \ No newline at end of file +- [PyPI v0.15.1] https://pypi.org/project/unstructured-client/0.15.1 - . + +## 2024-01-06 00:19:29 +### Changes +Based on: +- OpenAPI Doc 0.0.1 +- Speakeasy CLI 1.133.1 (2.228.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.15.2] . +### Releases +- [PyPI v0.15.2] https://pypi.org/project/unstructured-client/0.15.2 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 40bf4e6f..c224a2a0 100644 --- a/USAGE.md +++ b/USAGE.md @@ -11,6 +11,10 @@ req = shared.PartitionParameters( chunking_strategy='by_title', combine_under_n_chars=500, encoding='utf-8', + extract_image_block_types=[ + 'image', + 'table', + ], files=shared.Files( content='0x2cC94b2FEF'.encode(), file_name='um.shtml', diff --git a/docs/models/shared/partitionparameters.md b/docs/models/shared/partitionparameters.md index 5308c3fa..4e2b8f97 100644 --- a/docs/models/shared/partitionparameters.md +++ b/docs/models/shared/partitionparameters.md @@ -9,6 +9,7 @@ | `combine_under_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | 500 | | `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If true, return coordinates for each element. Default: false | | | `encoding` | *Optional[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | utf-8 | +| `extract_image_block_types` | List[*str*] | :heavy_minus_sign: | The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields | ["image","table"] | | `files` | [Optional[shared.Files]](../../models/shared/files.md) | :heavy_minus_sign: | The file to extract | | | `gz_uncompressed_content_type` | *Optional[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf | | `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox | diff --git a/gen.yaml b/gen.yaml index 7c737523..86087780 100644 --- a/gen.yaml +++ b/gen.yaml @@ -6,7 +6,7 @@ generation: fixes: nameResolutionDec2023: false python: - version: 0.15.1 + version: 0.15.2 author: Unstructured clientServerStatusCodesAsErrors: true description: Python Client SDK for Unstructured API diff --git a/setup.py b/setup.py index 876de228..4fca2489 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="unstructured-client", - version="0.15.1", + version="0.15.2", author="Unstructured", description="Python Client SDK for Unstructured API", long_description=long_description, diff --git a/src/unstructured_client/models/shared/partition_parameters.py b/src/unstructured_client/models/shared/partition_parameters.py index 8e84af06..cd44e544 100644 --- a/src/unstructured_client/models/shared/partition_parameters.py +++ b/src/unstructured_client/models/shared/partition_parameters.py @@ -23,6 +23,8 @@ class PartitionParameters: r"""If true, return coordinates for each element. Default: false""" encoding: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'encoding' }}) r"""The encoding method used to decode the text input. Default: utf-8""" + extract_image_block_types: Optional[List[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'extract_image_block_types' }}) + r"""The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields""" files: Optional[Files] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }}) r"""The file to extract""" gz_uncompressed_content_type: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'gz_uncompressed_content_type' }}) diff --git a/src/unstructured_client/sdkconfiguration.py b/src/unstructured_client/sdkconfiguration.py index 59da35e7..bc9b98af 100644 --- a/src/unstructured_client/sdkconfiguration.py +++ b/src/unstructured_client/sdkconfiguration.py @@ -27,9 +27,9 @@ class SDKConfiguration: server: str = '' language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '0.15.1' - gen_version: str = '2.225.2' - user_agent: str = 'speakeasy-sdk/python 0.15.1 2.225.2 0.0.1 unstructured-client' + sdk_version: str = '0.15.2' + gen_version: str = '2.228.1' + user_agent: str = 'speakeasy-sdk/python 0.15.2 2.228.1 0.0.1 unstructured-client' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: