runwayml 2.1.5__py3-none-any.whl → 2.1.7__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/_client.py +18 -18
- runwayml/_version.py +1 -1
- {runwayml-2.1.5.dist-info → runwayml-2.1.7.dist-info}/METADATA +14 -3
- {runwayml-2.1.5.dist-info → runwayml-2.1.7.dist-info}/RECORD +6 -6
- {runwayml-2.1.5.dist-info → runwayml-2.1.7.dist-info}/WHEEL +1 -1
- {runwayml-2.1.5.dist-info → runwayml-2.1.7.dist-info}/licenses/LICENSE +1 -1
runwayml/_client.py
CHANGED
@@ -8,7 +8,7 @@ from typing_extensions import Self, override
|
|
8
8
|
|
9
9
|
import httpx
|
10
10
|
|
11
|
-
from . import
|
11
|
+
from . import _exceptions
|
12
12
|
from ._qs import Querystring
|
13
13
|
from ._types import (
|
14
14
|
NOT_GIVEN,
|
@@ -24,6 +24,7 @@ from ._utils import (
|
|
24
24
|
get_async_library,
|
25
25
|
)
|
26
26
|
from ._version import __version__
|
27
|
+
from .resources import tasks, image_to_video
|
27
28
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
28
29
|
from ._exceptions import RunwayMLError, APIStatusError
|
29
30
|
from ._base_client import (
|
@@ -37,7 +38,6 @@ __all__ = [
|
|
37
38
|
"Transport",
|
38
39
|
"ProxiesTypes",
|
39
40
|
"RequestOptions",
|
40
|
-
"resources",
|
41
41
|
"RunwayML",
|
42
42
|
"AsyncRunwayML",
|
43
43
|
"Client",
|
@@ -46,8 +46,8 @@ __all__ = [
|
|
46
46
|
|
47
47
|
|
48
48
|
class RunwayML(SyncAPIClient):
|
49
|
-
tasks:
|
50
|
-
image_to_video:
|
49
|
+
tasks: tasks.TasksResource
|
50
|
+
image_to_video: image_to_video.ImageToVideoResource
|
51
51
|
with_raw_response: RunwayMLWithRawResponse
|
52
52
|
with_streaming_response: RunwayMLWithStreamedResponse
|
53
53
|
|
@@ -111,8 +111,8 @@ class RunwayML(SyncAPIClient):
|
|
111
111
|
_strict_response_validation=_strict_response_validation,
|
112
112
|
)
|
113
113
|
|
114
|
-
self.tasks =
|
115
|
-
self.image_to_video =
|
114
|
+
self.tasks = tasks.TasksResource(self)
|
115
|
+
self.image_to_video = image_to_video.ImageToVideoResource(self)
|
116
116
|
self.with_raw_response = RunwayMLWithRawResponse(self)
|
117
117
|
self.with_streaming_response = RunwayMLWithStreamedResponse(self)
|
118
118
|
|
@@ -225,8 +225,8 @@ class RunwayML(SyncAPIClient):
|
|
225
225
|
|
226
226
|
|
227
227
|
class AsyncRunwayML(AsyncAPIClient):
|
228
|
-
tasks:
|
229
|
-
image_to_video:
|
228
|
+
tasks: tasks.AsyncTasksResource
|
229
|
+
image_to_video: image_to_video.AsyncImageToVideoResource
|
230
230
|
with_raw_response: AsyncRunwayMLWithRawResponse
|
231
231
|
with_streaming_response: AsyncRunwayMLWithStreamedResponse
|
232
232
|
|
@@ -290,8 +290,8 @@ class AsyncRunwayML(AsyncAPIClient):
|
|
290
290
|
_strict_response_validation=_strict_response_validation,
|
291
291
|
)
|
292
292
|
|
293
|
-
self.tasks =
|
294
|
-
self.image_to_video =
|
293
|
+
self.tasks = tasks.AsyncTasksResource(self)
|
294
|
+
self.image_to_video = image_to_video.AsyncImageToVideoResource(self)
|
295
295
|
self.with_raw_response = AsyncRunwayMLWithRawResponse(self)
|
296
296
|
self.with_streaming_response = AsyncRunwayMLWithStreamedResponse(self)
|
297
297
|
|
@@ -405,26 +405,26 @@ class AsyncRunwayML(AsyncAPIClient):
|
|
405
405
|
|
406
406
|
class RunwayMLWithRawResponse:
|
407
407
|
def __init__(self, client: RunwayML) -> None:
|
408
|
-
self.tasks =
|
409
|
-
self.image_to_video =
|
408
|
+
self.tasks = tasks.TasksResourceWithRawResponse(client.tasks)
|
409
|
+
self.image_to_video = image_to_video.ImageToVideoResourceWithRawResponse(client.image_to_video)
|
410
410
|
|
411
411
|
|
412
412
|
class AsyncRunwayMLWithRawResponse:
|
413
413
|
def __init__(self, client: AsyncRunwayML) -> None:
|
414
|
-
self.tasks =
|
415
|
-
self.image_to_video =
|
414
|
+
self.tasks = tasks.AsyncTasksResourceWithRawResponse(client.tasks)
|
415
|
+
self.image_to_video = image_to_video.AsyncImageToVideoResourceWithRawResponse(client.image_to_video)
|
416
416
|
|
417
417
|
|
418
418
|
class RunwayMLWithStreamedResponse:
|
419
419
|
def __init__(self, client: RunwayML) -> None:
|
420
|
-
self.tasks =
|
421
|
-
self.image_to_video =
|
420
|
+
self.tasks = tasks.TasksResourceWithStreamingResponse(client.tasks)
|
421
|
+
self.image_to_video = image_to_video.ImageToVideoResourceWithStreamingResponse(client.image_to_video)
|
422
422
|
|
423
423
|
|
424
424
|
class AsyncRunwayMLWithStreamedResponse:
|
425
425
|
def __init__(self, client: AsyncRunwayML) -> None:
|
426
|
-
self.tasks =
|
427
|
-
self.image_to_video =
|
426
|
+
self.tasks = tasks.AsyncTasksResourceWithStreamingResponse(client.tasks)
|
427
|
+
self.image_to_video = image_to_video.AsyncImageToVideoResourceWithStreamingResponse(client.image_to_video)
|
428
428
|
|
429
429
|
|
430
430
|
Client = RunwayML
|
runwayml/_version.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: runwayml
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.7
|
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
|
7
7
|
Author-email: RunwayML <dev-feedback@runwayml.com>
|
8
|
-
License: Apache-2.0
|
8
|
+
License-Expression: Apache-2.0
|
9
|
+
License-File: LICENSE
|
9
10
|
Classifier: Intended Audience :: Developers
|
10
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
11
12
|
Classifier: Operating System :: MacOS
|
@@ -349,6 +350,16 @@ client.with_options(http_client=DefaultHttpxClient(...))
|
|
349
350
|
|
350
351
|
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
|
351
352
|
|
353
|
+
```py
|
354
|
+
from runwayml import RunwayML
|
355
|
+
|
356
|
+
with RunwayML() as client:
|
357
|
+
# make requests here
|
358
|
+
...
|
359
|
+
|
360
|
+
# HTTP client is now closed
|
361
|
+
```
|
362
|
+
|
352
363
|
## Versioning
|
353
364
|
|
354
365
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
runwayml/__init__.py,sha256=iXnJfH73wbj9IxfCHpwfWBxgOa9C4FRrrbBZM5f3biw,2476
|
2
2
|
runwayml/_base_client.py,sha256=Ehfq1oaghucmu9n_MpuoOlH-qZGbetwzgNOmVG81cns,68038
|
3
|
-
runwayml/_client.py,sha256=
|
3
|
+
runwayml/_client.py,sha256=4y5GISlJ-EYAWKfNIj6p2W_7KwJY3bHVkCYU7yNJBtU,16453
|
4
4
|
runwayml/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
5
5
|
runwayml/_constants.py,sha256=JE8kyZa2Q4NK_i4fO--8siEYTzeHnT0fYbOFDgDP4uk,464
|
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=RetJb-IkgnyakTwxVpNoHS4r6gR-fWncQ1z-t_E4x1A,28677
|
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=h3APBj5WBA10CPj5uKd1rBEbvcTOgoINYJvafyOx8W4,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.1.
|
34
|
-
runwayml-2.1.
|
35
|
-
runwayml-2.1.
|
36
|
-
runwayml-2.1.
|
33
|
+
runwayml-2.1.7.dist-info/METADATA,sha256=ul8qR7NjKuwFQLcOg9NnXwyPuZdej41eKkLBh6El16M,13578
|
34
|
+
runwayml-2.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
35
|
+
runwayml-2.1.7.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
|
36
|
+
runwayml-2.1.7.dist-info/RECORD,,
|
@@ -186,7 +186,7 @@
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
187
187
|
identification within third-party archives.
|
188
188
|
|
189
|
-
Copyright
|
189
|
+
Copyright 2025 RunwayML
|
190
190
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
192
192
|
you may not use this file except in compliance with the License.
|