Skip to content

Commit 8c93115

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.98.1
1 parent 4722f75 commit 8c93115

File tree

14 files changed

+57
-40
lines changed

14 files changed

+57
-40
lines changed

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,14 @@ Based on:
164164
### Generated
165165
- [python v0.8.1] .
166166
### Releases
167-
- [PyPI v0.8.1] https://pypi.org/project/unstructured-client/0.8.1 - .
167+
- [PyPI v0.8.1] https://pypi.org/project/unstructured-client/0.8.1 - .
168+
169+
## 2023-10-12 19:43:15
170+
### Changes
171+
Based on:
172+
- OpenAPI Doc 0.0.1
173+
- Speakeasy CLI 1.98.1 (2.152.1) https://github.com/speakeasy-api/speakeasy
174+
### Generated
175+
- [python v0.9.0] .
176+
### Releases
177+
- [PyPI v0.9.0] https://pypi.org/project/unstructured-client/0.9.0 - .

USAGE.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,34 @@ import unstructured_client
66
from unstructured_client.models import shared
77

88
s = unstructured_client.UnstructuredClient(
9-
security=shared.Security(
10-
api_key_auth="YOUR_API_KEY",
11-
),
9+
api_key_auth="YOUR_API_KEY",
1210
)
1311

1412
req = shared.PartitionParameters(
1513
chunking_strategy='by_title',
1614
combine_under_n_chars=500,
17-
coordinates=False,
1815
encoding='utf-8',
1916
files=shared.PartitionParametersFiles(
2017
content='+WmI5Q)|yy'.encode(),
2118
files='um',
2219
),
2320
gz_uncompressed_content_type='application/pdf',
2421
hi_res_model_name='yolox',
25-
include_page_breaks=False,
2622
languages=[
27-
'eng',
23+
'[',
24+
'e',
25+
'n',
26+
'g',
27+
']',
2828
],
29-
multipage_sections=False,
3029
new_after_n_chars=1500,
3130
output_format='application/json',
32-
pdf_infer_table_structure=False,
3331
skip_infer_table_types=[
34-
'pdf',
32+
'p',
33+
'd',
34+
'f',
3535
],
3636
strategy='hi_res',
37-
xml_keep_tags=False,
3837
)
3938

4039
res = s.general.partition(req)

docs/models/errors/validationerror.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
| Field | Type | Required | Description |
77
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
8-
| `loc` | list[[Union[str, int]](undefined/models/shared/validationerrorloc.md)] | :heavy_check_mark: | N/A |
8+
| `loc` | list[[Union[str, int]](undefined/models/errors/validationerrorloc.md)] | :heavy_check_mark: | N/A |
99
| `msg` | *Optional[str]* | :heavy_check_mark: | N/A |
1010
| `type` | *Optional[str]* | :heavy_check_mark: | N/A |

docs/models/shared/partitionparameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
| `gz_uncompressed_content_type` | *Optional[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
1414
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
1515
| `include_page_breaks` | *Optional[bool]* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |
16-
| `languages` | list[*str*] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | |
16+
| `languages` | list[*str*] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | [eng] |
1717
| `multipage_sections` | *Optional[bool]* | :heavy_minus_sign: | If chunking strategy is set, determines if sections can span multiple sections. Default: true | |
1818
| `new_after_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500 | 1500 |
1919
| `output_format` | *Optional[str]* | :heavy_minus_sign: | The format of the response. Supported formats are application/json and text/csv. Default: application/json. | application/json |
2020
| `pdf_infer_table_structure` | *Optional[bool]* | :heavy_minus_sign: | If True and strategy=hi_res, any Table Elements extracted from a PDF will include an additional metadata field, 'text_as_html', where the value (string) is a just a transformation of the data into an HTML <table>. | |
21-
| `skip_infer_table_types` | list[*str*] | :heavy_minus_sign: | The document types that you want to skip table extraction with. Default: ['pdf', 'jpg', 'png'] | |
21+
| `skip_infer_table_types` | list[*str*] | :heavy_minus_sign: | The document types that you want to skip table extraction with. Default: ['pdf', 'jpg', 'png'] | pdf |
2222
| `strategy` | *Optional[str]* | :heavy_minus_sign: | The strategy to use for partitioning PDF/image. Options are fast, hi_res, auto. Default: auto | hi_res |
2323
| `xml_keep_tags` | *Optional[bool]* | :heavy_minus_sign: | If True, will retain the XML tags in the output. Otherwise it will simply extract the text from within the tags. Only applies to partition_xml. | |

docs/sdks/general/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,34 @@ import unstructured_client
1616
from unstructured_client.models import shared
1717

1818
s = unstructured_client.UnstructuredClient(
19-
security=shared.Security(
20-
api_key_auth="YOUR_API_KEY",
21-
),
19+
api_key_auth="YOUR_API_KEY",
2220
)
2321

2422
req = shared.PartitionParameters(
2523
chunking_strategy='by_title',
2624
combine_under_n_chars=500,
27-
coordinates=False,
2825
encoding='utf-8',
2926
files=shared.PartitionParametersFiles(
3027
content='+WmI5Q)|yy'.encode(),
3128
files='um',
3229
),
3330
gz_uncompressed_content_type='application/pdf',
3431
hi_res_model_name='yolox',
35-
include_page_breaks=False,
3632
languages=[
37-
'eng',
33+
'[',
34+
'e',
35+
'n',
36+
'g',
37+
']',
3838
],
39-
multipage_sections=False,
4039
new_after_n_chars=1500,
4140
output_format='application/json',
42-
pdf_infer_table_structure=False,
4341
skip_infer_table_types=[
44-
'pdf',
42+
'p',
43+
'd',
44+
'f',
4545
],
4646
strategy='hi_res',
47-
xml_keep_tags=False,
4847
)
4948

5049
res = s.general.partition(req)

files.gen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ src/unstructured_client/models/shared/__init__.py
2020
USAGE.md
2121
docs/models/operations/partitionresponse.md
2222
docs/models/errors/httpvalidationerror.md
23+
docs/models/errors/validationerrorloc.md
2324
docs/models/errors/validationerror.md
24-
docs/models/shared/validationerrorloc.md
2525
docs/models/shared/partitionparametersfiles.md
2626
docs/models/shared/partitionparameters.md
2727
docs/models/shared/security.md

gen.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 25324f1821b1070aa4a416ec8ddca590
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.92.3
6-
generationVersion: 2.143.2
5+
speakeasyVersion: 1.98.1
6+
generationVersion: 2.152.1
77
generation:
88
comments:
99
disableComments: false
@@ -14,7 +14,7 @@ generation:
1414
tagNamespacingDisabled: false
1515
features:
1616
python:
17-
core: 2.88.1
17+
core: 2.88.4
1818
downloadStreams: 0.0.1
1919
examples: 2.81.2
2020
globalSecurity: 2.82.0
@@ -23,10 +23,10 @@ features:
2323
retries: 2.82.0
2424
serverIDs: 2.81.1
2525
python:
26-
version: 0.8.1
26+
version: 0.9.0
2727
author: Unstructured
2828
clientServerStatusCodesAsErrors: true
2929
description: Python Client SDK for Unstructured API
30-
maxMethodParams: 0
3130
flattenGlobalSecurity: true
31+
maxMethodParams: 0
3232
packageName: unstructured-client

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
setuptools.setup(
1212
name="unstructured-client",
13-
version="0.8.1",
13+
version="0.9.0",
1414
author="Unstructured",
15-
description="Python Client SDK Generated by Speakeasy",
15+
description="Python Client SDK for Unstructured API",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",
1818
packages=setuptools.find_packages(where="src"),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
22

3+
# __init__.py

0 commit comments

Comments
 (0)