runwayml 2.3.1__py3-none-any.whl → 2.3.3__py3-none-any.whl
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/_base_client.py +7 -1
- runwayml/_client.py +2 -2
- runwayml/_version.py +1 -1
- {runwayml-2.3.1.dist-info → runwayml-2.3.3.dist-info}/METADATA +2 -2
- {runwayml-2.3.1.dist-info → runwayml-2.3.3.dist-info}/RECORD +7 -7
- {runwayml-2.3.1.dist-info → runwayml-2.3.3.dist-info}/WHEEL +0 -0
- {runwayml-2.3.1.dist-info → runwayml-2.3.3.dist-info}/licenses/LICENSE +0 -0
runwayml/_base_client.py
CHANGED
@@ -63,7 +63,7 @@ from ._types import (
|
|
63
63
|
ModelBuilderProtocol,
|
64
64
|
)
|
65
65
|
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
|
66
|
-
from ._compat import model_copy, model_dump
|
66
|
+
from ._compat import PYDANTIC_V2, model_copy, model_dump
|
67
67
|
from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type
|
68
68
|
from ._response import (
|
69
69
|
APIResponse,
|
@@ -207,6 +207,9 @@ class BaseSyncPage(BasePage[_T], Generic[_T]):
|
|
207
207
|
model: Type[_T],
|
208
208
|
options: FinalRequestOptions,
|
209
209
|
) -> None:
|
210
|
+
if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
|
211
|
+
self.__pydantic_private__ = {}
|
212
|
+
|
210
213
|
self._model = model
|
211
214
|
self._client = client
|
212
215
|
self._options = options
|
@@ -292,6 +295,9 @@ class BaseAsyncPage(BasePage[_T], Generic[_T]):
|
|
292
295
|
client: AsyncAPIClient,
|
293
296
|
options: FinalRequestOptions,
|
294
297
|
) -> None:
|
298
|
+
if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
|
299
|
+
self.__pydantic_private__ = {}
|
300
|
+
|
295
301
|
self._model = model
|
296
302
|
self._client = client
|
297
303
|
self._options = options
|
runwayml/_client.py
CHANGED
@@ -79,7 +79,7 @@ class RunwayML(SyncAPIClient):
|
|
79
79
|
# part of our public interface in the future.
|
80
80
|
_strict_response_validation: bool = False,
|
81
81
|
) -> None:
|
82
|
-
"""Construct a new synchronous
|
82
|
+
"""Construct a new synchronous RunwayML client instance.
|
83
83
|
|
84
84
|
This automatically infers the `api_key` argument from the `RUNWAYML_API_SECRET` environment variable if it is not provided.
|
85
85
|
"""
|
@@ -258,7 +258,7 @@ class AsyncRunwayML(AsyncAPIClient):
|
|
258
258
|
# part of our public interface in the future.
|
259
259
|
_strict_response_validation: bool = False,
|
260
260
|
) -> None:
|
261
|
-
"""Construct a new async
|
261
|
+
"""Construct a new async AsyncRunwayML client instance.
|
262
262
|
|
263
263
|
This automatically infers the `api_key` argument from the `RUNWAYML_API_SECRET` environment variable if it is not provided.
|
264
264
|
"""
|
runwayml/_version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: runwayml
|
3
|
-
Version: 2.3.
|
3
|
+
Version: 2.3.3
|
4
4
|
Summary: The official Python library for the runwayml API
|
5
5
|
Project-URL: Homepage, https://github.com/runwayml/sdk-python
|
6
6
|
Project-URL: Repository, https://github.com/runwayml/sdk-python
|
@@ -38,7 +38,7 @@ The RunwayML Python library provides convenient access to the RunwayML REST API
|
|
38
38
|
application. The library includes type definitions for all request params and response fields,
|
39
39
|
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
|
40
40
|
|
41
|
-
It is generated with [Stainless](https://www.
|
41
|
+
It is generated with [Stainless](https://www.stainless.com/).
|
42
42
|
|
43
43
|
## Documentation
|
44
44
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
runwayml/__init__.py,sha256=iXnJfH73wbj9IxfCHpwfWBxgOa9C4FRrrbBZM5f3biw,2476
|
2
|
-
runwayml/_base_client.py,sha256=
|
3
|
-
runwayml/_client.py,sha256=
|
2
|
+
runwayml/_base_client.py,sha256=LEpmvQl1HYPBRwzuSpz7P4hnuX1kgTVC3wVCHqnJ4ls,68823
|
3
|
+
runwayml/_client.py,sha256=aWjUYIDY3AgOnzaN9KPCIRjGwCzdMn2WTQfSr8_UEk4,16458
|
4
4
|
runwayml/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
5
5
|
runwayml/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
6
6
|
runwayml/_exceptions.py,sha256=p2Q8kywHCVQzArLQL4Ht-HetTBhAvevU6yDvEq7PpIE,3224
|
@@ -11,7 +11,7 @@ runwayml/_resource.py,sha256=BF-j3xY5eRTKmuTxg8eDhLtLP4MLB1phDh_B6BKipKA,1112
|
|
11
11
|
runwayml/_response.py,sha256=3Tf7pmDYDMv5BJuF0ljEBtMMk5Q9T7jcWn7I6P-hbdM,28801
|
12
12
|
runwayml/_streaming.py,sha256=NSVuAgknVQWU1cgZEjQn01IdZKKynb5rOeYp5Lo-OEQ,10108
|
13
13
|
runwayml/_types.py,sha256=oHct1QQY_lI8bepCgfWDZm2N5VNi0e6o1iLeiTh4Y_0,6145
|
14
|
-
runwayml/_version.py,sha256=
|
14
|
+
runwayml/_version.py,sha256=QX6uPeybSb6FfK2koBx8SvG2liG_FCvs02-wYKHWCuk,160
|
15
15
|
runwayml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
runwayml/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
runwayml/_utils/_logs.py,sha256=ZfS5W59hdqEBVV86lNrk28PhvUxtHOzs9JqiLhSu0pI,780
|
@@ -30,7 +30,7 @@ runwayml/types/__init__.py,sha256=R3cLEXzpcEpEOuxaFBo3R72ewH1LtjpkZ0aYOIt1CAo,40
|
|
30
30
|
runwayml/types/image_to_video_create_params.py,sha256=98DsjOHnmHEi8mVjZOQEDL3P1hJUT8uktp0mDA5WJ5Y,1869
|
31
31
|
runwayml/types/image_to_video_create_response.py,sha256=l5GszzUSItV-ZYHCB8hH_GSVibUZEkzfRLrAhXkd8O4,346
|
32
32
|
runwayml/types/task_retrieve_response.py,sha256=v8y2bLxsW6srzScW-B3Akv72q_PI_NQmduGrGRQMHds,2139
|
33
|
-
runwayml-2.3.
|
34
|
-
runwayml-2.3.
|
35
|
-
runwayml-2.3.
|
36
|
-
runwayml-2.3.
|
33
|
+
runwayml-2.3.3.dist-info/METADATA,sha256=MIfyWJ-Um22zZj2y8GClNzTDrL4D0njlQQgn_M2CJAY,13556
|
34
|
+
runwayml-2.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
35
|
+
runwayml-2.3.3.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
|
36
|
+
runwayml-2.3.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|