Skip to content

chore: speakeasy sdk regeneration - Generate #8

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 1 commit into from
Nov 1, 2023
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
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ s = unstructured_client.UnstructuredClient(

<!-- Start Custom 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.


Expand All @@ -118,8 +118,6 @@ http_client = requests.Session()
http_client.headers.update({'x-custom-header': 'someValue'})
s = unstructured_client.UnstructuredClient(client: http_client)
```


<!-- End Custom HTTP Client -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,14 @@ Based on:
### Generated
- [python v0.12.1] .
### Releases
- [PyPI v0.12.1] https://pypi.org/project/unstructured-client/0.12.1 - .
- [PyPI v0.12.1] https://pypi.org/project/unstructured-client/0.12.1 - .

## 2023-11-01 00:19:24
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.109.2 (2.173.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.12.2] .
### Releases
- [PyPI v0.12.2] https://pypi.org/project/unstructured-client/0.12.2 - .
1 change: 1 addition & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ req = shared.PartitionParameters(
'g',
']',
],
max_characters=1500,
new_after_n_chars=1500,
output_format='application/json',
skip_infer_table_types=[
Expand Down
3 changes: 2 additions & 1 deletion docs/models/shared/partitionparameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
| `include_page_breaks` | *Optional[bool]* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |
| `languages` | List[*str*] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | [eng] |
| `max_characters` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, cut off new sections after reaching a length of n chars (hard max). Default: 1500 | 1500 |
| `multipage_sections` | *Optional[bool]* | :heavy_minus_sign: | If chunking strategy is set, determines if sections can span multiple sections. Default: true | |
| `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 |
| `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 (soft max). Default: 1500 | 1500 |
| `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 |
| `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>. | |
| `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 |
Expand Down
1 change: 1 addition & 0 deletions docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ req = shared.PartitionParameters(
'g',
']',
],
max_characters=1500,
new_after_n_chars=1500,
output_format='application/json',
skip_infer_table_types=[
Expand Down
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
configVersion: 1.0.0
management:
docChecksum: 25324f1821b1070aa4a416ec8ddca590
docChecksum: bf57420eebd40f2b1d166092f01e3927
docVersion: 0.0.1
speakeasyVersion: 1.109.0
speakeasyVersion: 1.109.2
generationVersion: 2.173.0
generation:
comments:
Expand All @@ -23,7 +23,7 @@ features:
retries: 2.82.0
serverIDs: 2.81.1
python:
version: 0.12.1
version: 0.12.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.12.1",
version="0.12.2",
author="Unstructured",
description="Python Client SDK for Unstructured API",
long_description=long_description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ class PartitionParameters:
r"""If True, the output will include page breaks if the filetype supports it. Default: false"""
languages: Optional[List[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'languages' }})
r"""The languages present in the document, for use in partitioning and/or OCR"""
max_characters: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'max_characters' }})
r"""If chunking strategy is set, cut off new sections after reaching a length of n chars (hard max). Default: 1500"""
multipage_sections: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'multipage_sections' }})
r"""If chunking strategy is set, determines if sections can span multiple sections. Default: true"""
new_after_n_chars: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'new_after_n_chars' }})
r"""If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500"""
r"""If chunking strategy is set, cut off new sections after reaching a length of n chars (soft max). Default: 1500"""
output_format: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'output_format' }})
r"""The format of the response. Supported formats are application/json and text/csv. Default: application/json."""
pdf_infer_table_structure: Optional[bool] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'pdf_infer_table_structure' }})
Expand Down
4 changes: 2 additions & 2 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class SDKConfiguration:
server: str = ''
language: str = 'python'
openapi_doc_version: str = '0.0.1'
sdk_version: str = '0.12.1'
sdk_version: str = '0.12.2'
gen_version: str = '2.173.0'
user_agent: str = 'speakeasy-sdk/python 0.12.1 2.173.0 0.0.1 unstructured-client'
user_agent: str = 'speakeasy-sdk/python 0.12.2 2.173.0 0.0.1 unstructured-client'
retry_config: RetryConfig = None

def get_server_details(self) -> Tuple[str, Dict[str, str]]:
Expand Down