runwayml 2.1.5__tar.gz → 2.1.7__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.
Files changed (70) hide show
  1. runwayml-2.1.7/.release-please-manifest.json +3 -0
  2. {runwayml-2.1.5 → runwayml-2.1.7}/CHANGELOG.md +28 -0
  3. {runwayml-2.1.5 → runwayml-2.1.7}/LICENSE +1 -1
  4. {runwayml-2.1.5 → runwayml-2.1.7}/PKG-INFO +14 -3
  5. {runwayml-2.1.5 → runwayml-2.1.7}/README.md +10 -0
  6. {runwayml-2.1.5 → runwayml-2.1.7}/pyproject.toml +1 -1
  7. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_client.py +18 -18
  8. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_version.py +1 -1
  9. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_client.py +4 -4
  10. runwayml-2.1.5/.release-please-manifest.json +0 -3
  11. {runwayml-2.1.5 → runwayml-2.1.7}/.gitignore +0 -0
  12. {runwayml-2.1.5 → runwayml-2.1.7}/CONTRIBUTING.md +0 -0
  13. {runwayml-2.1.5 → runwayml-2.1.7}/SECURITY.md +0 -0
  14. {runwayml-2.1.5 → runwayml-2.1.7}/api.md +0 -0
  15. {runwayml-2.1.5 → runwayml-2.1.7}/bin/check-release-environment +0 -0
  16. {runwayml-2.1.5 → runwayml-2.1.7}/bin/publish-pypi +0 -0
  17. {runwayml-2.1.5 → runwayml-2.1.7}/examples/.keep +0 -0
  18. {runwayml-2.1.5 → runwayml-2.1.7}/mypy.ini +0 -0
  19. {runwayml-2.1.5 → runwayml-2.1.7}/noxfile.py +0 -0
  20. {runwayml-2.1.5 → runwayml-2.1.7}/release-please-config.json +0 -0
  21. {runwayml-2.1.5 → runwayml-2.1.7}/requirements-dev.lock +0 -0
  22. {runwayml-2.1.5 → runwayml-2.1.7}/requirements.lock +0 -0
  23. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/__init__.py +0 -0
  24. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_base_client.py +0 -0
  25. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_compat.py +0 -0
  26. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_constants.py +0 -0
  27. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_exceptions.py +0 -0
  28. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_files.py +0 -0
  29. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_models.py +0 -0
  30. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_qs.py +0 -0
  31. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_resource.py +0 -0
  32. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_response.py +0 -0
  33. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_streaming.py +0 -0
  34. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_types.py +0 -0
  35. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/__init__.py +0 -0
  36. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_logs.py +0 -0
  37. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_proxy.py +0 -0
  38. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_reflection.py +0 -0
  39. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_streams.py +0 -0
  40. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_sync.py +0 -0
  41. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_transform.py +0 -0
  42. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_typing.py +0 -0
  43. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/_utils/_utils.py +0 -0
  44. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/lib/.keep +0 -0
  45. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/py.typed +0 -0
  46. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/resources/__init__.py +0 -0
  47. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/resources/image_to_video.py +0 -0
  48. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/resources/tasks.py +0 -0
  49. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/types/__init__.py +0 -0
  50. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/types/image_to_video_create_params.py +0 -0
  51. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/types/image_to_video_create_response.py +0 -0
  52. {runwayml-2.1.5 → runwayml-2.1.7}/src/runwayml/types/task_retrieve_response.py +0 -0
  53. {runwayml-2.1.5 → runwayml-2.1.7}/tests/__init__.py +0 -0
  54. {runwayml-2.1.5 → runwayml-2.1.7}/tests/api_resources/__init__.py +0 -0
  55. {runwayml-2.1.5 → runwayml-2.1.7}/tests/api_resources/test_image_to_video.py +0 -0
  56. {runwayml-2.1.5 → runwayml-2.1.7}/tests/api_resources/test_tasks.py +0 -0
  57. {runwayml-2.1.5 → runwayml-2.1.7}/tests/conftest.py +0 -0
  58. {runwayml-2.1.5 → runwayml-2.1.7}/tests/sample_file.txt +0 -0
  59. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_deepcopy.py +0 -0
  60. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_extract_files.py +0 -0
  61. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_files.py +0 -0
  62. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_models.py +0 -0
  63. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_qs.py +0 -0
  64. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_required_args.py +0 -0
  65. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_response.py +0 -0
  66. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_streaming.py +0 -0
  67. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_transform.py +0 -0
  68. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_utils/test_proxy.py +0 -0
  69. {runwayml-2.1.5 → runwayml-2.1.7}/tests/test_utils/test_typing.py +0 -0
  70. {runwayml-2.1.5 → runwayml-2.1.7}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "2.1.7"
3
+ }
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.7 (2025-01-02)
4
+
5
+ Full Changelog: [v2.1.6...v2.1.7](https://github.com/runwayml/sdk-python/compare/v2.1.6...v2.1.7)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** codegen related update ([#61](https://github.com/runwayml/sdk-python/issues/61)) ([6248aa2](https://github.com/runwayml/sdk-python/commit/6248aa2e561cecddc440e8cdfe0773ce0353e25b))
10
+
11
+ ## 2.1.6 (2024-12-18)
12
+
13
+ Full Changelog: [v2.1.5...v2.1.6](https://github.com/runwayml/sdk-python/compare/v2.1.5...v2.1.6)
14
+
15
+ ### Chores
16
+
17
+ * **internal:** codegen related update ([#48](https://github.com/runwayml/sdk-python/issues/48)) ([f999274](https://github.com/runwayml/sdk-python/commit/f999274cbc241f063e3f6abdd7bef93749066c05))
18
+ * **internal:** codegen related update ([#50](https://github.com/runwayml/sdk-python/issues/50)) ([187e174](https://github.com/runwayml/sdk-python/commit/187e1747d62dc99718de5d2dfb5bc8fa8291ab34))
19
+ * **internal:** codegen related update ([#51](https://github.com/runwayml/sdk-python/issues/51)) ([1c70164](https://github.com/runwayml/sdk-python/commit/1c701642c7797d49ce59bc938b0f18511f3c6d9e))
20
+ * **internal:** codegen related update ([#52](https://github.com/runwayml/sdk-python/issues/52)) ([07e7dda](https://github.com/runwayml/sdk-python/commit/07e7ddaae96eb26063a88e6bc23adef2f9b0e7d5))
21
+ * **internal:** codegen related update ([#54](https://github.com/runwayml/sdk-python/issues/54)) ([5540248](https://github.com/runwayml/sdk-python/commit/55402489160f4cb43244f90e5f85c90bd96a7729))
22
+ * **internal:** codegen related update ([#55](https://github.com/runwayml/sdk-python/issues/55)) ([75daba1](https://github.com/runwayml/sdk-python/commit/75daba1936f201824daec2b8b08abf68a52b55d7))
23
+ * **internal:** codegen related update ([#56](https://github.com/runwayml/sdk-python/issues/56)) ([c98ed80](https://github.com/runwayml/sdk-python/commit/c98ed80958344be95507a3c5ef7ede3006cf6bf5))
24
+ * **internal:** fix some typos ([#58](https://github.com/runwayml/sdk-python/issues/58)) ([404c771](https://github.com/runwayml/sdk-python/commit/404c771242c581f9c618966a03b5de5f5db8a5da))
25
+
26
+
27
+ ### Documentation
28
+
29
+ * **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))
30
+
3
31
  ## 2.1.5 (2024-12-13)
4
32
 
5
33
  Full Changelog: [v2.1.4...v2.1.5](https://github.com/runwayml/sdk-python/compare/v2.1.4...v2.1.5)
@@ -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 2024 RunwayML
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.
@@ -1,11 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: runwayml
3
- Version: 2.1.5
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:
@@ -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:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runwayml"
3
- version = "2.1.5"
3
+ version = "2.1.7"
4
4
  description = "The official Python library for the runwayml API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -8,7 +8,7 @@ from typing_extensions import Self, override
8
8
 
9
9
  import httpx
10
10
 
11
- from . import resources, _exceptions
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: resources.TasksResource
50
- image_to_video: resources.ImageToVideoResource
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 = resources.TasksResource(self)
115
- self.image_to_video = resources.ImageToVideoResource(self)
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: resources.AsyncTasksResource
229
- image_to_video: resources.AsyncImageToVideoResource
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 = resources.AsyncTasksResource(self)
294
- self.image_to_video = resources.AsyncImageToVideoResource(self)
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 = resources.TasksResourceWithRawResponse(client.tasks)
409
- self.image_to_video = resources.ImageToVideoResourceWithRawResponse(client.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 = resources.AsyncTasksResourceWithRawResponse(client.tasks)
415
- self.image_to_video = resources.AsyncImageToVideoResourceWithRawResponse(client.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 = resources.TasksResourceWithStreamingResponse(client.tasks)
421
- self.image_to_video = resources.ImageToVideoResourceWithStreamingResponse(client.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 = resources.AsyncTasksResourceWithStreamingResponse(client.tasks)
427
- self.image_to_video = resources.AsyncImageToVideoResourceWithStreamingResponse(client.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
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "runwayml"
4
- __version__ = "2.1.5" # x-release-please-version
4
+ __version__ = "2.1.7" # x-release-please-version
@@ -355,11 +355,11 @@ class TestRunwayML:
355
355
  FinalRequestOptions(
356
356
  method="get",
357
357
  url="/foo",
358
- params={"foo": "baz", "query_param": "overriden"},
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": "overriden"}
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": "overriden"},
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": "overriden"}
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(
@@ -1,3 +0,0 @@
1
- {
2
- ".": "2.1.5"
3
- }
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