diff --git a/README.md b/README.md index 0eb6d403..1f111530 100755 --- a/README.md +++ b/README.md @@ -95,6 +95,32 @@ s = unstructured_client.UnstructuredClient( + + + + + + + + +# 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. + + +For example, you could specify a header for every request that your sdk makes as follows: + +```python +import unstructured_client +import requests + +http_client = requests.Session() +http_client.headers.update({'x-custom-header': 'someValue'}) +s = unstructured_client.UnstructuredClient(client: http_client) +``` + + + diff --git a/RELEASES.md b/RELEASES.md index 44ece955..2b4e01ce 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -214,4 +214,14 @@ Based on: ### Generated - [python v0.12.0] . ### Releases -- [PyPI v0.12.0] https://pypi.org/project/unstructured-client/0.12.0 - . \ No newline at end of file +- [PyPI v0.12.0] https://pypi.org/project/unstructured-client/0.12.0 - . + +## 2023-10-28 00:17:22 +### Changes +Based on: +- OpenAPI Doc 0.0.1 +- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.12.1] . +### Releases +- [PyPI v0.12.1] https://pypi.org/project/unstructured-client/0.12.1 - . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index f15482af..8133d493 100644 --- a/gen.yaml +++ b/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 25324f1821b1070aa4a416ec8ddca590 docVersion: 0.0.1 - speakeasyVersion: 1.104.0 - generationVersion: 2.169.0 + speakeasyVersion: 1.109.0 + generationVersion: 2.173.0 generation: comments: disableComments: false @@ -15,7 +15,7 @@ generation: tagNamespacingDisabled: false features: python: - core: 3.3.0 + core: 3.3.1 examples: 2.81.3 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 @@ -23,7 +23,7 @@ features: retries: 2.82.0 serverIDs: 2.81.1 python: - version: 0.12.0 + version: 0.12.1 author: Unstructured clientServerStatusCodesAsErrors: true description: Python Client SDK for Unstructured API diff --git a/setup.py b/setup.py index 9f0ad6c4..ed2d6fe5 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="unstructured-client", - version="0.12.0", + version="0.12.1", author="Unstructured", description="Python Client SDK for Unstructured API", long_description=long_description, diff --git a/src/unstructured_client/sdkconfiguration.py b/src/unstructured_client/sdkconfiguration.py index b4a4075e..f376c491 100755 --- a/src/unstructured_client/sdkconfiguration.py +++ b/src/unstructured_client/sdkconfiguration.py @@ -26,9 +26,9 @@ class SDKConfiguration: server: str = '' language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '0.12.0' - gen_version: str = '2.169.0' - user_agent: str = 'speakeasy-sdk/python 0.12.0 2.169.0 0.0.1 unstructured-client' + sdk_version: str = '0.12.1' + gen_version: str = '2.173.0' + user_agent: str = 'speakeasy-sdk/python 0.12.1 2.173.0 0.0.1 unstructured-client' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: