Skip to content
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
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ management:
docChecksum: 903444f359d1dfa6342c692ae3e5c7ff
docVersion: 0.0.1
speakeasyVersion: internal
generationVersion: 2.248.1
releaseVersion: 0.17.0
configChecksum: b943408cdcab76d427c2cba0f6584bf4
generationVersion: 2.250.19
releaseVersion: 0.18.0
configChecksum: 938a4a39baa5695a3140be3b858483d4
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.4
core: 4.4.5
examples: 2.81.3
globalSecurity: 2.83.2
globalServerURLs: 2.82.1
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,4 +414,14 @@ Based on:
### Generated
- [python v0.17.0] .
### Releases
- [PyPI v0.17.0] https://pypi.org/project/unstructured-client/0.17.0 - .
- [PyPI v0.17.0] https://pypi.org/project/unstructured-client/0.17.0 - .

## 2024-02-08 16:10:16
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.174.2 (2.250.19) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.18.0] .
### Releases
- [PyPI v0.18.0] https://pypi.org/project/unstructured-client/0.18.0 - .
4 changes: 2 additions & 2 deletions docs/models/operations/partitionresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `elements` | List[*Any*] | :heavy_minus_sign: | Successful Response |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `elements` | List[*Any*] | :heavy_minus_sign: | Successful Response |
3 changes: 2 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ generation:
fixes:
nameResolutionDec2023: false
parameterOrderingFeb2024: false
requestResponseComponentNamesFeb2024: false
python:
version: 0.17.0
version: 0.18.0
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.17.0",
version="0.18.0",
author="Unstructured",
description="Python Client SDK for Unstructured API",
license = "MIT",
Expand Down
7 changes: 3 additions & 4 deletions src/unstructured_client/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
from typing import Any, List, Optional
from unstructured_client import utils
from unstructured_client.models import errors, operations, shared
from unstructured_client.utils._decorators import suggest_defining_url_if_401 # human code

from unstructured_client.utils._decorators import suggest_defining_url_if_401 # human code

class General:
sdk_configuration: SDKConfiguration
Expand All @@ -14,7 +13,7 @@ def __init__(self, sdk_config: SDKConfiguration) -> None:
self.sdk_configuration = sdk_config


@suggest_defining_url_if_401 # human code
@suggest_defining_url_if_401 # human code
def partition(self, request: Optional[shared.PartitionParameters], retries: Optional[utils.RetryConfig] = None) -> operations.PartitionResponse:
r"""Pipeline 1"""
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
Expand Down Expand Up @@ -68,4 +67,4 @@ def do_request():

return res



4 changes: 2 additions & 2 deletions src/unstructured_client/models/operations/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
class PartitionResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
elements: Optional[List[Any]] = dataclasses.field(default=None)
r"""Successful Response"""

Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
from typing import Callable, Dict, Union
from unstructured_client import utils
from unstructured_client.models import shared
from unstructured_client.utils._decorators import clean_server_url # human code
from unstructured_client.utils._decorators import clean_server_url # human code

class UnstructuredClient:
r"""Unstructured Pipeline API: Partition documents with the Unstructured library"""
general: General

sdk_configuration: SDKConfiguration

@clean_server_url # human code
@clean_server_url # human code
def __init__(self,
api_key_auth: Union[str, Callable[[], str]],
server: str = None,
Expand Down Expand Up @@ -57,4 +57,4 @@ def security():

def _init_sdks(self):
self.general = General(self.sdk_configuration)


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.17.0'
gen_version: str = '2.248.1'
user_agent: str = 'speakeasy-sdk/python 0.17.0 2.248.1 0.0.1 unstructured-client'
sdk_version: str = '0.18.0'
gen_version: str = '2.250.19'
user_agent: str = 'speakeasy-sdk/python 0.18.0 2.250.19 0.0.1 unstructured-client'
retry_config: RetryConfig = None

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