Skip to content

Commit b127e44

Browse files
github-actions[bot]speakeasybotyuming-long
authored
chore: 🐝 Update SDK - Generate 0.34.0 (#266)
> [!IMPORTANT] > revert base_url changes ``` git checkout yuming/custom_url src/unstructured_client/destinations.py git checkout yuming/custom_url src/unstructured_client/sources.py git checkout yuming/custom_url src/unstructured_client/jobs.py git checkout yuming/custom_url src/unstructured_client/workflows.py git checkout yuming/custom_url src/unstructured_client/general.py ``` > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/58686777b39d3936df6f61710ab738d8> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/d1b6cec20149892cd22bac1b6ad7c703> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.537.0 (2.588.0) https://github.com/speakeasy-api/speakeasy ## Versioning Version Bump Type: [minor] - 🤖 (automated) ## OpenAPI Change Summary No specification changes ## PYTHON CHANGELOG ## core: 5.15.0 - 2025-04-17 ### 🐝 New Features - Remove python-dateutil dependency *(commit by [@bflad](https://github.com/bflad))* --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: Yuming Long <[email protected]>
1 parent d41d0d5 commit b127e44

File tree

10 files changed

+59
-38
lines changed

10 files changed

+59
-38
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.speakeasy/temp/
12
.speakeasy/reports
23
.venv/
34
README-PYPI.md
@@ -11,10 +12,8 @@ __pycache__/
1112
# human-added igore files
1213
.ipynb_checkpoints/
1314
.idea/
14-
1515
.local
1616
*.ipynb
17-
1817
openapi.json
1918
openapi_client.json
2019
openapi_serverless.json

.speakeasy/gen.lock

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
44
docChecksum: 6433f28e5b70c3c0d7754fc7a88db327
55
docVersion: 1.1.7
6-
speakeasyVersion: 1.535.1
7-
generationVersion: 2.585.2
8-
releaseVersion: 0.33.1
9-
configChecksum: 8b5e7fbd95d040ba09964f3c97c3156a
6+
speakeasyVersion: 1.537.0
7+
generationVersion: 2.588.0
8+
releaseVersion: 0.34.0
9+
configChecksum: 0ba814fcbe0d0489903de407d36313af
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.14.0
19+
core: 5.15.0
2020
defaultEnabledRetries: 0.2.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
@@ -228,6 +228,7 @@ generatedFiles:
228228
- src/unstructured_client/_version.py
229229
- src/unstructured_client/basesdk.py
230230
- src/unstructured_client/destinations.py
231+
- src/unstructured_client/general.py
231232
- src/unstructured_client/httpclient.py
232233
- src/unstructured_client/jobs.py
233234
- src/unstructured_client/models/__init__.py
@@ -369,6 +370,7 @@ generatedFiles:
369370
- src/unstructured_client/types/basemodel.py
370371
- src/unstructured_client/utils/__init__.py
371372
- src/unstructured_client/utils/annotations.py
373+
- src/unstructured_client/utils/datetimes.py
372374
- src/unstructured_client/utils/enums.py
373375
- src/unstructured_client/utils/eventstreaming.py
374376
- src/unstructured_client/utils/forms.py
@@ -668,7 +670,7 @@ examples:
668670
"200":
669671
application/json: {"created_at": "2025-03-13T23:31:02.383Z", "id": "c3274f55-9861-4e4e-8526-4273aa4d2772", "status": "FAILURE"}
670672
"422":
671-
application/json: {"detail": [{"loc": ["<value>"], "msg": "<value>", "type": "<value>"}, {"loc": [], "msg": "<value>", "type": "<value>"}, {"loc": [], "msg": "<value>", "type": "<value>"}]}
673+
application/json: {"detail": "<value>"}
672674
create_connection_check_sources:
673675
speakeasy-default-create-connection-check-sources:
674676
parameters:
@@ -679,7 +681,7 @@ examples:
679681
"202":
680682
application/json: {"created_at": "2023-03-12T05:54:05.025Z", "id": "b5793adb-057f-470c-ae7e-309d786a99eb", "status": "SUCCESS"}
681683
"422":
682-
application/json: {"detail": []}
684+
application/json: {"detail": "<value>"}
683685
get_connection_check_sources:
684686
speakeasy-default-get-connection-check-sources:
685687
parameters:
@@ -690,6 +692,6 @@ examples:
690692
"200":
691693
application/json: {"created_at": "2023-09-12T00:38:55.692Z", "id": "f7d1d931-a753-4fe9-ae3f-671f188a9b55", "status": "SUCCESS"}
692694
"422":
693-
application/json: {"detail": [{"loc": ["<value>"], "msg": "<value>", "type": "<value>"}, {"loc": [], "msg": "<value>", "type": "<value>"}]}
695+
application/json: {"detail": "<value>"}
694696
examplesVersion: 1.0.1
695697
generatedTests: {}

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.535.1
1+
speakeasyVersion: 1.537.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:6771a944eaf5581cde4835c43e7997635f7d80ce441763c47cad9c305ba4a91e
5+
sourceRevisionDigest: sha256:f5fa536ffbf6240b18b267193074d11564a899dd6fdee36261205b93c8f84880
66
sourceBlobDigest: sha256:521a1c7be485e2be9f33ff7b82566823e96827cb69f7ca7775e0dd3dcc52d825
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1745261613
9+
- speakeasy-sdk-regen-1745334275
1010
- 1.1.7
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:6771a944eaf5581cde4835c43e7997635f7d80ce441763c47cad9c305ba4a91e
15+
sourceRevisionDigest: sha256:f5fa536ffbf6240b18b267193074d11564a899dd6fdee36261205b93c8f84880
1616
sourceBlobDigest: sha256:521a1c7be485e2be9f33ff7b82566823e96827cb69f7ca7775e0dd3dcc52d825
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:06bd35ef844f603c2c2357092fc875febff06f5c9eb855e262ff013b8935d8d6
18+
codeSamplesRevisionDigest: sha256:5940dadc286e702b4e23f58d1b7b536ffea4648a9f4f4a7ab650c6c107730a28
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,4 +977,14 @@ Based on:
977977
### Generated
978978
- [python v0.33.1] .
979979
### Releases
980-
- [PyPI v0.33.1] https://pypi.org/project/unstructured-client/0.33.1 - .
980+
- [PyPI v0.33.1] https://pypi.org/project/unstructured-client/0.33.1 - .
981+
982+
## 2025-04-22 15:11:11
983+
### Changes
984+
Based on:
985+
- OpenAPI Doc
986+
- Speakeasy CLI 1.537.0 (2.588.0) https://github.com/speakeasy-api/speakeasy
987+
### Generated
988+
- [python v0.34.0] .
989+
### Releases
990+
- [PyPI v0.34.0] https://pypi.org/project/unstructured-client/0.34.0 - .

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2ClientCredentialsEnabled: false
1313
oAuth2PasswordEnabled: false
1414
python:
15-
version: 0.33.1
15+
version: 0.34.0
1616
additionalDependencies:
1717
dev:
1818
deepdiff: '>=6.0'

poetry.lock

Lines changed: 3 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "unstructured-client"
3-
version = "0.33.1"
3+
version = "0.34.0"
44
description = "Python Client SDK for Unstructured API"
55
authors = [{ name = "Unstructured" },]
66
readme = "README-PYPI.md"
@@ -13,7 +13,6 @@ dependencies = [
1313
"nest-asyncio >=1.6.0",
1414
"pydantic >=2.11.2",
1515
"pypdf >=4.0",
16-
"python-dateutil >=2.8.2",
1716
"requests-toolbelt >=1.0.0",
1817
"typing-inspection >=0.4.0",
1918
]
@@ -41,7 +40,6 @@ pytest = ">=8.3.3"
4140
pytest-asyncio = ">=0.24.0"
4241
pytest-mock = ">=3.14.0"
4342
types-aiofiles = ">=24.1.0"
44-
types-python-dateutil = "^2.9.0.20240316"
4543
uvloop = ">=0.20.0"
4644

4745
[build-system]

src/unstructured_client/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "unstructured-client"
6-
__version__: str = "0.33.1"
6+
__version__: str = "0.34.0"
77
__openapi_doc_version__: str = "1.1.7"
8-
__gen_version__: str = "2.585.2"
9-
__user_agent__: str = "speakeasy-sdk/python 0.33.1 2.585.2 1.1.7 unstructured-client"
8+
__gen_version__: str = "2.588.0"
9+
__user_agent__: str = "speakeasy-sdk/python 0.34.0 2.588.0 1.1.7 unstructured-client"
1010

1111
try:
1212
if __package__ is not None:

src/unstructured_client/utils/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
22

33
from .annotations import get_discriminator
4+
from .datetimes import parse_datetime
45
from .enums import OpenEnumMeta
56
from .headers import get_headers, get_response_headers
67
from .metadata import (
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2+
3+
from datetime import datetime
4+
import sys
5+
6+
7+
def parse_datetime(datetime_string: str) -> datetime:
8+
"""
9+
Convert a RFC 3339 / ISO 8601 formatted string into a datetime object.
10+
Python versions 3.11 and later support parsing RFC 3339 directly with
11+
datetime.fromisoformat(), but for earlier versions, this function
12+
encapsulates the necessary extra logic.
13+
"""
14+
# Python 3.11 and later can parse RFC 3339 directly
15+
if sys.version_info >= (3, 11):
16+
return datetime.fromisoformat(datetime_string)
17+
18+
# For Python 3.10 and earlier, a common ValueError is trailing 'Z' suffix,
19+
# so fix that upfront.
20+
if datetime_string.endswith("Z"):
21+
datetime_string = datetime_string[:-1] + "+00:00"
22+
23+
return datetime.fromisoformat(datetime_string)

0 commit comments

Comments
 (0)