Skip to content

Commit a3cbaa6

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.1
1 parent 723f83b commit a3cbaa6

File tree

9 files changed

+96
-11
lines changed

9 files changed

+96
-11
lines changed

Diff for: README.md

+70
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,76 @@ s.general.sdk_configuration.server_url = "https://your-server"
7878

7979
<!-- End Dev Containers -->
8080

81+
82+
83+
## SDK Example Usage
84+
<!-- Start SDK Example Usage -->
85+
86+
87+
```python
88+
import unstructured_client
89+
from unstructured_client.models import shared
90+
91+
s = unstructured_client.UnstructuredClient(
92+
security=shared.Security(
93+
api_key_auth="YOUR_API_KEY",
94+
),
95+
)
96+
97+
req = shared.PartitionParameters(
98+
coordinates=False,
99+
encoding='utf-8',
100+
files=shared.PartitionParametersFiles(
101+
content='distinctio'.encode(),
102+
files='quibusdam',
103+
),
104+
gz_uncompressed_content_type='application/pdf',
105+
hi_res_model_name='yolox',
106+
include_page_breaks=False,
107+
ocr_languages=[
108+
'eng',
109+
],
110+
output_format='application/json',
111+
pdf_infer_table_structure=False,
112+
skip_infer_table_types=[
113+
'pdf',
114+
],
115+
strategy='hi_res',
116+
xml_keep_tags=False,
117+
)
118+
119+
res = s.general.partition(req)
120+
121+
if res.elements is not None:
122+
# handle response
123+
```
124+
<!-- End SDK Example Usage -->
125+
126+
127+
128+
<!-- Start SDK Available Operations -->
129+
## Available Resources and Operations
130+
131+
132+
### [general](docs/sdks/general/README.md)
133+
134+
* [partition](docs/sdks/general/README.md#partition) - Pipeline 1
135+
<!-- End SDK Available Operations -->
136+
137+
138+
139+
<!-- Start Pagination -->
140+
# Pagination
141+
142+
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
143+
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
144+
return value of `Next` is `None`, then there are no more pages to be fetched.
145+
146+
Here's an example of one such pagination call:
147+
148+
149+
<!-- End Pagination -->
150+
81151
<!-- Placeholder for Future Speakeasy SDK Sections -->
82152

83153
### Maturity

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,14 @@ Based on:
9494
### Generated
9595
- [python v0.5.1] .
9696
### Releases
97-
- [PyPI v0.5.1] https://pypi.org/project/unstructured-client/0.5.1 - .
97+
- [PyPI v0.5.1] https://pypi.org/project/unstructured-client/0.5.1 - .
98+
99+
## 2023-09-26 21:38:58
100+
### Changes
101+
Based on:
102+
- OpenAPI Doc 0.0.1
103+
- Speakeasy CLI 1.91.1 (2.130.1) https://github.com/speakeasy-api/speakeasy
104+
### Generated
105+
- [python v0.6.0] .
106+
### Releases
107+
- [PyPI v0.6.0] https://pypi.org/project/unstructured-client/0.6.0 - .

Diff for: docs/models/operations/partitionresponse.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | N/A |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `elements` | list[*Any*] | :heavy_minus_sign: | Successful Response |
10-
| `status_code` | *int* | :heavy_check_mark: | N/A |
11-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
10+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |

Diff for: docs/sdks/general/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# General
2+
(*general*)
23

34
### Available Operations
45

Diff for: docs/sdks/unstructuredclient/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# UnstructuredClient SDK
22

3+
34
## Overview
45

56
Unstructured Pipeline API: Partition documents with the Unstructured library

Diff for: gen.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ configVersion: 1.0.0
22
management:
33
docChecksum: f332d5b484fbeb4689b0c548694f5a69
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.90.0
6-
generationVersion: 2.125.1
5+
speakeasyVersion: 1.91.1
6+
generationVersion: 2.130.1
77
generation:
88
comments:
99
disableComments: false
@@ -14,7 +14,7 @@ generation:
1414
tagNamespacingDisabled: false
1515
features:
1616
python:
17-
core: 2.85.6
17+
core: 2.86.1
1818
examples: 2.81.2
1919
globalSecurity: 2.81.1
2020
globalServerURLs: 2.82.0
@@ -23,7 +23,7 @@ features:
2323
retries: 2.82.0
2424
serverIDs: 2.81.1
2525
python:
26-
version: 0.5.1
26+
version: 0.6.0
2727
author: Unstructured
2828
clientServerStatusCodesAsErrors: true
2929
description: Python Client SDK Generated by Speakeasy

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="unstructured-client",
13-
version="0.5.1",
13+
version="0.6.0",
1414
author="Unstructured",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

Diff for: src/unstructured_client/models/operations/partition.py

+3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
@dataclasses.dataclass
1111
class PartitionResponse:
1212
content_type: str = dataclasses.field()
13+
r"""HTTP response content type for this operation"""
1314
status_code: int = dataclasses.field()
15+
r"""HTTP response status code for this operation"""
1416
elements: Optional[list[Any]] = dataclasses.field(default=None)
1517
r"""Successful Response"""
1618
raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
19+
r"""Raw HTTP response; suitable for custom response parsing"""
1720

1821

Diff for: src/unstructured_client/sdkconfiguration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class SDKConfiguration:
2525
server: str = ''
2626
language: str = 'python'
2727
openapi_doc_version: str = '0.0.1'
28-
sdk_version: str = '0.5.1'
29-
gen_version: str = '2.125.1'
28+
sdk_version: str = '0.6.0'
29+
gen_version: str = '2.130.1'
3030
retry_config: RetryConfig = None
3131

3232
def get_server_details(self) -> tuple[str, dict[str, str]]:

0 commit comments

Comments
 (0)