runwayml 2.1.9__tar.gz → 2.1.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runwayml-2.1.11/.release-please-manifest.json +3 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/CHANGELOG.md +18 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/PKG-INFO +1 -1
- {runwayml-2.1.9 → runwayml-2.1.11}/pyproject.toml +2 -2
- {runwayml-2.1.9 → runwayml-2.1.11}/requirements-dev.lock +1 -1
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_constants.py +1 -1
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_models.py +1 -1
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_version.py +1 -1
- runwayml-2.1.9/.release-please-manifest.json +0 -3
- {runwayml-2.1.9 → runwayml-2.1.11}/.gitignore +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/CONTRIBUTING.md +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/LICENSE +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/README.md +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/SECURITY.md +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/api.md +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/bin/check-release-environment +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/bin/publish-pypi +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/examples/.keep +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/mypy.ini +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/noxfile.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/release-please-config.json +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/requirements.lock +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/__init__.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_base_client.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_client.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_compat.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_exceptions.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_files.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_qs.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_resource.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_response.py +2 -2
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_streaming.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_types.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/__init__.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_logs.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_proxy.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_reflection.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_streams.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_sync.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_transform.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_typing.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/_utils/_utils.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/lib/.keep +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/py.typed +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/resources/__init__.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/resources/image_to_video.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/resources/tasks.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/types/__init__.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/types/image_to_video_create_params.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/types/image_to_video_create_response.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/src/runwayml/types/task_retrieve_response.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/__init__.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/api_resources/__init__.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/api_resources/test_image_to_video.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/api_resources/test_tasks.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/conftest.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/sample_file.txt +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_client.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_deepcopy.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_extract_files.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_files.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_models.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_qs.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_required_args.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_response.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_streaming.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_transform.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_utils/test_proxy.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/test_utils/test_typing.py +0 -0
- {runwayml-2.1.9 → runwayml-2.1.11}/tests/utils.py +0 -0
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.1.11 (2025-02-04)
|
4
|
+
|
5
|
+
Full Changelog: [v2.1.10...v2.1.11](https://github.com/runwayml/sdk-python/compare/v2.1.10...v2.1.11)
|
6
|
+
|
7
|
+
### Chores
|
8
|
+
|
9
|
+
* **internal:** bummp ruff dependency ([#83](https://github.com/runwayml/sdk-python/issues/83)) ([3d1be9d](https://github.com/runwayml/sdk-python/commit/3d1be9d17d6f1bc737cf416c08cc9710aa61c94b))
|
10
|
+
* **internal:** change default timeout to an int ([#82](https://github.com/runwayml/sdk-python/issues/82)) ([38e5767](https://github.com/runwayml/sdk-python/commit/38e5767b267c108c8ef03b0fdb2508b20f74e018))
|
11
|
+
|
12
|
+
## 2.1.10 (2025-01-24)
|
13
|
+
|
14
|
+
Full Changelog: [v2.1.9...v2.1.10](https://github.com/runwayml/sdk-python/compare/v2.1.9...v2.1.10)
|
15
|
+
|
16
|
+
### Chores
|
17
|
+
|
18
|
+
* **internal:** minor formatting changes ([#80](https://github.com/runwayml/sdk-python/issues/80)) ([067f47a](https://github.com/runwayml/sdk-python/commit/067f47a1a59f15c71018bb28f3606832f223b42f))
|
19
|
+
* **internal:** minor style changes ([#78](https://github.com/runwayml/sdk-python/issues/78)) ([bd0eb4a](https://github.com/runwayml/sdk-python/commit/bd0eb4a84756ca8e8cf40935513358eac470d750))
|
20
|
+
|
3
21
|
## 2.1.9 (2025-01-21)
|
4
22
|
|
5
23
|
Full Changelog: [v2.1.8...v2.1.9](https://github.com/runwayml/sdk-python/compare/v2.1.8...v2.1.9)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "runwayml"
|
3
|
-
version = "2.1.
|
3
|
+
version = "2.1.11"
|
4
4
|
description = "The official Python library for the runwayml API"
|
5
5
|
dynamic = ["readme"]
|
6
6
|
license = "Apache-2.0"
|
@@ -177,7 +177,7 @@ select = [
|
|
177
177
|
"T201",
|
178
178
|
"T203",
|
179
179
|
# misuse of typing.TYPE_CHECKING
|
180
|
-
"
|
180
|
+
"TC004",
|
181
181
|
# import rules
|
182
182
|
"TID251",
|
183
183
|
]
|
@@ -6,7 +6,7 @@ RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
|
|
6
6
|
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
|
7
7
|
|
8
8
|
# default timeout is 1 minute
|
9
|
-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60
|
9
|
+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
|
10
10
|
DEFAULT_MAX_RETRIES = 2
|
11
11
|
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
|
12
12
|
|
@@ -172,7 +172,7 @@ class BaseModel(pydantic.BaseModel):
|
|
172
172
|
@override
|
173
173
|
def __str__(self) -> str:
|
174
174
|
# mypy complains about an invalid self arg
|
175
|
-
return f
|
175
|
+
return f"{self.__repr_name__()}({self.__repr_str__(', ')})" # type: ignore[misc]
|
176
176
|
|
177
177
|
# Override the 'construct' method in a way that supports recursive parsing without validation.
|
178
178
|
# Based on https://github.com/samuelcolvin/pydantic/issues/1168#issuecomment-817742836.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -136,6 +136,8 @@ class BaseAPIResponse(Generic[R]):
|
|
136
136
|
if cast_to and is_annotated_type(cast_to):
|
137
137
|
cast_to = extract_type_arg(cast_to, 0)
|
138
138
|
|
139
|
+
origin = get_origin(cast_to) or cast_to
|
140
|
+
|
139
141
|
if self._is_sse_stream:
|
140
142
|
if to:
|
141
143
|
if not is_stream_class_type(to):
|
@@ -195,8 +197,6 @@ class BaseAPIResponse(Generic[R]):
|
|
195
197
|
if cast_to == bool:
|
196
198
|
return cast(R, response.text.lower() == "true")
|
197
199
|
|
198
|
-
origin = get_origin(cast_to) or cast_to
|
199
|
-
|
200
200
|
if origin == APIResponse:
|
201
201
|
raise RuntimeError("Unexpected state - cast_to is `APIResponse`")
|
202
202
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|