Skip to content

chore: 🐝 Update SDK - Generate #68

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
Apr 6, 2024
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
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ id: 8b5fa338-9106-4734-abf0-e30d67044a90
management:
docChecksum: 33cfd4e27a32bf67fdb56996b6bd7a7a
docVersion: 0.0.1
speakeasyVersion: 1.235.2
generationVersion: 2.298.2
releaseVersion: 0.23.0
configChecksum: f473fa43101a624fd439d76205b6dc9a
speakeasyVersion: 1.241.0
generationVersion: 2.300.0
releaseVersion: 0.23.1
configChecksum: fabd3c02a49e5b9a6a10fa261a46c3c9
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.6.2
core: 4.6.3
examples: 2.81.3
globalSecurity: 2.83.5
globalServerURLs: 2.82.2
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,12 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.235.2 (2.298.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.23.0] .
- [python v0.23.0] .

## 2024-04-06 00:18:10
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.241.0 (2.300.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.23.1] .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.23.0
version: 0.23.1
additionalDependencies:
dependencies:
deepdiff: '>=6.0'
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setuptools.setup(
name='unstructured-client',
version='0.23.0',
version='0.23.1',
author='Unstructured',
description='Python Client SDK for Unstructured API',
license = 'MIT',
Expand Down Expand Up @@ -47,10 +47,12 @@
],
extras_require={
"dev": [
"pylint==2.16.2",
"pylint==3.1.0",
],
},
package_dir={'': 'src'},
python_requires='>=3.8',
package_data={'unstructured-client': ['py.typed']},
package_data={
'unstructured-client': ['py.typed']
},
)
3 changes: 2 additions & 1 deletion src/unstructured_client/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@ def do_request():

return res




6 changes: 3 additions & 3 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class SDKConfiguration:
server: Optional[str] = ''
language: str = 'python'
openapi_doc_version: str = '0.0.1'
sdk_version: str = '0.23.0'
gen_version: str = '2.298.2'
user_agent: str = 'speakeasy-sdk/python 0.23.0 2.298.2 0.0.1 unstructured-client'
sdk_version: str = '0.23.1'
gen_version: str = '2.300.0'
user_agent: str = 'speakeasy-sdk/python 0.23.1 2.300.0 0.0.1 unstructured-client'
retry_config: Optional[RetryConfig] = None
_hooks: Optional[SDKHooks] = None

Expand Down
3 changes: 1 addition & 2 deletions src/unstructured_client/utils/retries.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def retry_with_backoff(func, initial_interval=500, max_interval=60000, exponent=
raise
sleep = ((initial_interval/1000) *
exponent**retries + random.uniform(0, 1))
if sleep > max_interval/1000:
sleep = max_interval/1000
sleep = min(sleep, max_interval / 1000)
time.sleep(sleep)
retries += 1