runwayml 2.1.5__tar.gz → 2.1.6__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.6/.release-please-manifest.json +3 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/CHANGELOG.md +20 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/PKG-INFO +14 -3
- {runwayml-2.1.5 → runwayml-2.1.6}/README.md +10 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/pyproject.toml +1 -1
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_client.py +18 -18
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_version.py +1 -1
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_client.py +4 -4
- runwayml-2.1.5/.release-please-manifest.json +0 -3
- {runwayml-2.1.5 → runwayml-2.1.6}/.gitignore +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/CONTRIBUTING.md +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/LICENSE +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/SECURITY.md +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/api.md +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/bin/check-release-environment +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/bin/publish-pypi +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/examples/.keep +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/mypy.ini +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/noxfile.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/release-please-config.json +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/requirements-dev.lock +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/requirements.lock +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/__init__.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_base_client.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_compat.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_constants.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_exceptions.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_files.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_models.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_qs.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_resource.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_response.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_streaming.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_types.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/__init__.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_logs.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_proxy.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_reflection.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_streams.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_sync.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_transform.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_typing.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/_utils/_utils.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/lib/.keep +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/py.typed +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/resources/__init__.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/resources/image_to_video.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/resources/tasks.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/types/__init__.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/types/image_to_video_create_params.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/types/image_to_video_create_response.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/src/runwayml/types/task_retrieve_response.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/__init__.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/api_resources/__init__.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/api_resources/test_image_to_video.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/api_resources/test_tasks.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/conftest.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/sample_file.txt +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_deepcopy.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_extract_files.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_files.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_models.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_qs.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_required_args.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_response.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_streaming.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_transform.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_utils/test_proxy.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/test_utils/test_typing.py +0 -0
- {runwayml-2.1.5 → runwayml-2.1.6}/tests/utils.py +0 -0
@@ -1,5 +1,25 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.1.6 (2024-12-18)
|
4
|
+
|
5
|
+
Full Changelog: [v2.1.5...v2.1.6](https://github.com/runwayml/sdk-python/compare/v2.1.5...v2.1.6)
|
6
|
+
|
7
|
+
### Chores
|
8
|
+
|
9
|
+
* **internal:** codegen related update ([#48](https://github.com/runwayml/sdk-python/issues/48)) ([f999274](https://github.com/runwayml/sdk-python/commit/f999274cbc241f063e3f6abdd7bef93749066c05))
|
10
|
+
* **internal:** codegen related update ([#50](https://github.com/runwayml/sdk-python/issues/50)) ([187e174](https://github.com/runwayml/sdk-python/commit/187e1747d62dc99718de5d2dfb5bc8fa8291ab34))
|
11
|
+
* **internal:** codegen related update ([#51](https://github.com/runwayml/sdk-python/issues/51)) ([1c70164](https://github.com/runwayml/sdk-python/commit/1c701642c7797d49ce59bc938b0f18511f3c6d9e))
|
12
|
+
* **internal:** codegen related update ([#52](https://github.com/runwayml/sdk-python/issues/52)) ([07e7dda](https://github.com/runwayml/sdk-python/commit/07e7ddaae96eb26063a88e6bc23adef2f9b0e7d5))
|
13
|
+
* **internal:** codegen related update ([#54](https://github.com/runwayml/sdk-python/issues/54)) ([5540248](https://github.com/runwayml/sdk-python/commit/55402489160f4cb43244f90e5f85c90bd96a7729))
|
14
|
+
* **internal:** codegen related update ([#55](https://github.com/runwayml/sdk-python/issues/55)) ([75daba1](https://github.com/runwayml/sdk-python/commit/75daba1936f201824daec2b8b08abf68a52b55d7))
|
15
|
+
* **internal:** codegen related update ([#56](https://github.com/runwayml/sdk-python/issues/56)) ([c98ed80](https://github.com/runwayml/sdk-python/commit/c98ed80958344be95507a3c5ef7ede3006cf6bf5))
|
16
|
+
* **internal:** fix some typos ([#58](https://github.com/runwayml/sdk-python/issues/58)) ([404c771](https://github.com/runwayml/sdk-python/commit/404c771242c581f9c618966a03b5de5f5db8a5da))
|
17
|
+
|
18
|
+
|
19
|
+
### Documentation
|
20
|
+
|
21
|
+
* **readme:** example snippet for client context manager ([#57](https://github.com/runwayml/sdk-python/issues/57)) ([e62b5e9](https://github.com/runwayml/sdk-python/commit/e62b5e9d1176d72c7285ede6200436bc994260ae))
|
22
|
+
|
3
23
|
## 2.1.5 (2024-12-13)
|
4
24
|
|
5
25
|
Full Changelog: [v2.1.4...v2.1.5](https://github.com/runwayml/sdk-python/compare/v2.1.4...v2.1.5)
|
@@ -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.6
|
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:
|
@@ -318,6 +318,16 @@ client.with_options(http_client=DefaultHttpxClient(...))
|
|
318
318
|
|
319
319
|
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.
|
320
320
|
|
321
|
+
```py
|
322
|
+
from runwayml import RunwayML
|
323
|
+
|
324
|
+
with RunwayML() as client:
|
325
|
+
# make requests here
|
326
|
+
...
|
327
|
+
|
328
|
+
# HTTP client is now closed
|
329
|
+
```
|
330
|
+
|
321
331
|
## Versioning
|
322
332
|
|
323
333
|
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:
|
@@ -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
|
@@ -355,11 +355,11 @@ class TestRunwayML:
|
|
355
355
|
FinalRequestOptions(
|
356
356
|
method="get",
|
357
357
|
url="/foo",
|
358
|
-
params={"foo": "baz", "query_param": "
|
358
|
+
params={"foo": "baz", "query_param": "overridden"},
|
359
359
|
)
|
360
360
|
)
|
361
361
|
url = httpx.URL(request.url)
|
362
|
-
assert dict(url.params) == {"foo": "baz", "query_param": "
|
362
|
+
assert dict(url.params) == {"foo": "baz", "query_param": "overridden"}
|
363
363
|
|
364
364
|
def test_request_extra_json(self) -> None:
|
365
365
|
request = self.client._build_request(
|
@@ -1137,11 +1137,11 @@ class TestAsyncRunwayML:
|
|
1137
1137
|
FinalRequestOptions(
|
1138
1138
|
method="get",
|
1139
1139
|
url="/foo",
|
1140
|
-
params={"foo": "baz", "query_param": "
|
1140
|
+
params={"foo": "baz", "query_param": "overridden"},
|
1141
1141
|
)
|
1142
1142
|
)
|
1143
1143
|
url = httpx.URL(request.url)
|
1144
|
-
assert dict(url.params) == {"foo": "baz", "query_param": "
|
1144
|
+
assert dict(url.params) == {"foo": "baz", "query_param": "overridden"}
|
1145
1145
|
|
1146
1146
|
def test_request_extra_json(self) -> None:
|
1147
1147
|
request = self.client._build_request(
|
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
|
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
|