Skip to content

chore: 🐝 Update SDK - Generate #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ s = unstructured_client.UnstructuredClient(
<!-- Start Custom HTTP Client [http-client] -->
## 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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
4 changes: 4 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions docs/models/shared/partitionparameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions src/unstructured_client/models/shared/partition_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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' }})
Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down