Skip to content

Commit

Permalink
Merge pull request #7 from Unstructured-IO/speakeasy-sdk-regen-169845…
Browse files Browse the repository at this point in the history
…2244

chore: speakeasy sdk regeneration - Generate
  • Loading branch information
awalker4 authored Oct 28, 2023
2 parents 0c63972 + f069aa1 commit 0f9a017
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 9 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,32 @@ s = unstructured_client.UnstructuredClient(
<!-- No SDK Available Operations -->

<!-- No Pagination -->
<!-- No Error Handling -->




<!-- No Server Selection -->

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


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)
```


<!-- 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 @@ -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 - .
- [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 - .
8 changes: 4 additions & 4 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,15 +15,15 @@ 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
nameOverrides: 2.81.1
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
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.0",
version="0.12.1",
author="Unstructured",
description="Python Client SDK for Unstructured API",
long_description=long_description,
Expand Down
6 changes: 3 additions & 3 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.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]]:
Expand Down

0 comments on commit 0f9a017

Please sign in to comment.