Skip to content

Commit 7d55f6e

Browse files
chore: 🐝 Update SDK - Generate (#68)
# SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.241.0 (2.300.0) https://github.com/speakeasy-api/speakeasy ## PYTHON CHANGELOG ## globalSecurity: 2.83.5 - 2024-03-15 ### 🐛 Bug Fixes - fixed hoisting of operation security *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* ## globalServerURLs: 2.82.2 - 2024-03-06 ### 🔧 Chores - expand server selection test coverage *(commit by [@2ynn](https://github.com/2ynn))* ## retries: 2.82.1 - 2024-01-10 ### 🐛 Bug Fixes - retry_connection_errors logic *(commit by [@2ynn](https://github.com/2ynn))* ## unions: 2.82.6 - 2024-02-29 ### 🐛 Bug Fixes - null-enums are treated as switch a oneOf field to nullable *(commit by [@disintegrator](https://github.com/disintegrator))* ## examples: 2.81.3 - 2023-10-17 ### 🔧 Chores - remove multi word generated examples *(commit by [@ThomasRooney](https://github.com/ThomasRooney))* ## core: 4.6.3 - 2024-04-05 ### 🔧 Chores - upgrade to pylint 3.1.0 *(commit by [@LukeHagar](https://github.com/LukeHagar))* ## nameOverrides: 2.81.2 - 2024-03-25 ### 🐛 Bug Fixes - x-speakeasy-name-overrides being missed when used under an allOf *(commit by [@ThomasRooney](https://github.com/ThomasRooney))* ## responseFormat: 0.1.0 - 2024-03-02 ### 🐝 New Features - add support for response formats and flat responses *(commit by [@TristanSpeakEasy](https://github.com/TristanSpeakeasy))* Co-authored-by: speakeasybot <[email protected]>
1 parent 73a1c56 commit 7d55f6e

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
44
docChecksum: 33cfd4e27a32bf67fdb56996b6bd7a7a
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.235.2
7-
generationVersion: 2.298.2
8-
releaseVersion: 0.23.0
9-
configChecksum: f473fa43101a624fd439d76205b6dc9a
6+
speakeasyVersion: 1.241.0
7+
generationVersion: 2.300.0
8+
releaseVersion: 0.23.1
9+
configChecksum: fabd3c02a49e5b9a6a10fa261a46c3c9
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1313
published: true
1414
features:
1515
python:
16-
core: 4.6.2
16+
core: 4.6.3
1717
examples: 2.81.3
1818
globalSecurity: 2.83.5
1919
globalServerURLs: 2.82.2

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,4 +482,12 @@ Based on:
482482
- OpenAPI Doc
483483
- Speakeasy CLI 1.235.2 (2.298.2) https://github.com/speakeasy-api/speakeasy
484484
### Generated
485-
- [python v0.23.0] .
485+
- [python v0.23.0] .
486+
487+
## 2024-04-06 00:18:10
488+
### Changes
489+
Based on:
490+
- OpenAPI Doc
491+
- Speakeasy CLI 1.241.0 (2.300.0) https://github.com/speakeasy-api/speakeasy
492+
### Generated
493+
- [python v0.23.1] .

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
python:
13-
version: 0.23.0
13+
version: 0.23.1
1414
additionalDependencies:
1515
dependencies:
1616
deepdiff: '>=6.0'

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setuptools.setup(
2121
name='unstructured-client',
22-
version='0.23.0',
22+
version='0.23.1',
2323
author='Unstructured',
2424
description='Python Client SDK for Unstructured API',
2525
license = 'MIT',
@@ -47,10 +47,12 @@
4747
],
4848
extras_require={
4949
"dev": [
50-
"pylint==2.16.2",
50+
"pylint==3.1.0",
5151
],
5252
},
5353
package_dir={'': 'src'},
5454
python_requires='>=3.8',
55-
package_data={'unstructured-client': ['py.typed']},
55+
package_data={
56+
'unstructured-client': ['py.typed']
57+
},
5658
)

src/unstructured_client/general.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,5 @@ def do_request():
9393

9494
return res
9595

96-
96+
97+

src/unstructured_client/sdkconfiguration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class SDKConfiguration:
2929
server: Optional[str] = ''
3030
language: str = 'python'
3131
openapi_doc_version: str = '0.0.1'
32-
sdk_version: str = '0.23.0'
33-
gen_version: str = '2.298.2'
34-
user_agent: str = 'speakeasy-sdk/python 0.23.0 2.298.2 0.0.1 unstructured-client'
32+
sdk_version: str = '0.23.1'
33+
gen_version: str = '2.300.0'
34+
user_agent: str = 'speakeasy-sdk/python 0.23.1 2.300.0 0.0.1 unstructured-client'
3535
retry_config: Optional[RetryConfig] = None
3636
_hooks: Optional[SDKHooks] = None
3737

src/unstructured_client/utils/retries.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def retry_with_backoff(func, initial_interval=500, max_interval=60000, exponent=
114114
raise
115115
sleep = ((initial_interval/1000) *
116116
exponent**retries + random.uniform(0, 1))
117-
if sleep > max_interval/1000:
118-
sleep = max_interval/1000
117+
sleep = min(sleep, max_interval / 1000)
119118
time.sleep(sleep)
120119
retries += 1

0 commit comments

Comments
 (0)