runwayml 3.0.2__tar.gz → 3.0.4__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 (73) hide show
  1. runwayml-3.0.4/.release-please-manifest.json +3 -0
  2. {runwayml-3.0.2 → runwayml-3.0.4}/CHANGELOG.md +30 -0
  3. {runwayml-3.0.2 → runwayml-3.0.4}/PKG-INFO +8 -1
  4. {runwayml-3.0.2 → runwayml-3.0.4}/README.md +7 -0
  5. {runwayml-3.0.2 → runwayml-3.0.4}/pyproject.toml +1 -1
  6. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_base_client.py +175 -239
  7. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_client.py +1 -4
  8. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_models.py +2 -2
  9. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_response.py +1 -1
  10. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_utils.py +9 -1
  11. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_version.py +1 -1
  12. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/resources/image_to_video.py +43 -16
  13. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/types/image_to_video_create_params.py +25 -2
  14. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/types/image_to_video_create_response.py +0 -1
  15. {runwayml-3.0.2 → runwayml-3.0.4}/tests/api_resources/test_image_to_video.py +8 -2
  16. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_client.py +22 -6
  17. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_models.py +3 -0
  18. runwayml-3.0.2/.release-please-manifest.json +0 -3
  19. {runwayml-3.0.2 → runwayml-3.0.4}/.gitignore +0 -0
  20. {runwayml-3.0.2 → runwayml-3.0.4}/CONTRIBUTING.md +0 -0
  21. {runwayml-3.0.2 → runwayml-3.0.4}/LICENSE +0 -0
  22. {runwayml-3.0.2 → runwayml-3.0.4}/SECURITY.md +0 -0
  23. {runwayml-3.0.2 → runwayml-3.0.4}/api.md +0 -0
  24. {runwayml-3.0.2 → runwayml-3.0.4}/bin/check-release-environment +0 -0
  25. {runwayml-3.0.2 → runwayml-3.0.4}/bin/publish-pypi +0 -0
  26. {runwayml-3.0.2 → runwayml-3.0.4}/examples/.keep +0 -0
  27. {runwayml-3.0.2 → runwayml-3.0.4}/mypy.ini +0 -0
  28. {runwayml-3.0.2 → runwayml-3.0.4}/noxfile.py +0 -0
  29. {runwayml-3.0.2 → runwayml-3.0.4}/release-please-config.json +0 -0
  30. {runwayml-3.0.2 → runwayml-3.0.4}/requirements-dev.lock +0 -0
  31. {runwayml-3.0.2 → runwayml-3.0.4}/requirements.lock +0 -0
  32. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/__init__.py +0 -0
  33. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_compat.py +0 -0
  34. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_constants.py +0 -0
  35. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_exceptions.py +0 -0
  36. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_files.py +0 -0
  37. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_qs.py +0 -0
  38. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_resource.py +0 -0
  39. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_streaming.py +0 -0
  40. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_types.py +0 -0
  41. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/__init__.py +0 -0
  42. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_logs.py +0 -0
  43. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_proxy.py +0 -0
  44. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_reflection.py +0 -0
  45. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_streams.py +0 -0
  46. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_sync.py +0 -0
  47. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_transform.py +0 -0
  48. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/_utils/_typing.py +0 -0
  49. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/lib/.keep +0 -0
  50. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/py.typed +0 -0
  51. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/resources/__init__.py +0 -0
  52. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/resources/organization.py +0 -0
  53. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/resources/tasks.py +0 -0
  54. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/types/__init__.py +0 -0
  55. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/types/organization_retrieve_response.py +0 -0
  56. {runwayml-3.0.2 → runwayml-3.0.4}/src/runwayml/types/task_retrieve_response.py +0 -0
  57. {runwayml-3.0.2 → runwayml-3.0.4}/tests/__init__.py +0 -0
  58. {runwayml-3.0.2 → runwayml-3.0.4}/tests/api_resources/__init__.py +0 -0
  59. {runwayml-3.0.2 → runwayml-3.0.4}/tests/api_resources/test_organization.py +0 -0
  60. {runwayml-3.0.2 → runwayml-3.0.4}/tests/api_resources/test_tasks.py +0 -0
  61. {runwayml-3.0.2 → runwayml-3.0.4}/tests/conftest.py +0 -0
  62. {runwayml-3.0.2 → runwayml-3.0.4}/tests/sample_file.txt +0 -0
  63. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_deepcopy.py +0 -0
  64. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_extract_files.py +0 -0
  65. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_files.py +0 -0
  66. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_qs.py +0 -0
  67. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_required_args.py +0 -0
  68. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_response.py +0 -0
  69. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_streaming.py +0 -0
  70. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_transform.py +0 -0
  71. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_utils/test_proxy.py +0 -0
  72. {runwayml-3.0.2 → runwayml-3.0.4}/tests/test_utils/test_typing.py +0 -0
  73. {runwayml-3.0.2 → runwayml-3.0.4}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.0.4"
3
+ }
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.4 (2025-04-30)
4
+
5
+ Full Changelog: [v3.0.3...v3.0.4](https://github.com/runwayml/sdk-python/compare/v3.0.3...v3.0.4)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **api:** Fix for parameters with missing descriptions ([1ab27c6](https://github.com/runwayml/sdk-python/commit/1ab27c6285263701b69ed1ea05751a78a333e25f))
10
+ * **api:** Make `ratio` a required parameter for i2v ([e1b73a5](https://github.com/runwayml/sdk-python/commit/e1b73a55073ae5d0d224b751726515d946a93607))
11
+
12
+ ## 3.0.3 (2025-04-24)
13
+
14
+ Full Changelog: [v3.0.2...v3.0.3](https://github.com/runwayml/sdk-python/compare/v3.0.2...v3.0.3)
15
+
16
+ ### Bug Fixes
17
+
18
+ * **pydantic v1:** more robust ModelField.annotation check ([1f45aa4](https://github.com/runwayml/sdk-python/commit/1f45aa4ab023db52bc79a33492c4441f00d30d17))
19
+
20
+
21
+ ### Chores
22
+
23
+ * broadly detect json family of content-type headers ([7adcad9](https://github.com/runwayml/sdk-python/commit/7adcad916636065b709d0bdff9c00047f48cf167))
24
+ * **ci:** add timeout thresholds for CI jobs ([a59f6e6](https://github.com/runwayml/sdk-python/commit/a59f6e62adc33fe07b81088f9ed066fd06118f63))
25
+ * **ci:** only use depot for staging repos ([bdd8635](https://github.com/runwayml/sdk-python/commit/bdd8635b236ca1686047d382f271e8a4954bc302))
26
+ * **internal:** codegen related update ([6ec7118](https://github.com/runwayml/sdk-python/commit/6ec7118bb5e1d1737d42cb017e2c8b133aa471d0))
27
+ * **internal:** fix list file params ([c745a86](https://github.com/runwayml/sdk-python/commit/c745a864dd1edcdc3ac38645963075e672723874))
28
+ * **internal:** import reformatting ([a991a2d](https://github.com/runwayml/sdk-python/commit/a991a2d2ac36ee544470999eeef0fe536b040b62))
29
+ * **internal:** minor formatting changes ([0f34a44](https://github.com/runwayml/sdk-python/commit/0f34a44ec0ee863d00e7656e7675ab43aa9ef973))
30
+ * **internal:** refactor retries to not use recursion ([b5637fb](https://github.com/runwayml/sdk-python/commit/b5637fbfc50816122689694ed2e0acef3020da03))
31
+ * **internal:** update models test ([79488d6](https://github.com/runwayml/sdk-python/commit/79488d6e50b1075d8f7cad6e3fb3ed022332e42e))
32
+
3
33
  ## 3.0.2 (2025-04-17)
4
34
 
5
35
  Full Changelog: [v3.0.1...v3.0.2](https://github.com/runwayml/sdk-python/compare/v3.0.1...v3.0.2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: runwayml
3
- Version: 3.0.2
3
+ Version: 3.0.4
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
@@ -65,6 +65,7 @@ client = RunwayML(
65
65
  image_to_video = client.image_to_video.create(
66
66
  model="gen4_turbo",
67
67
  prompt_image="https://example.com/assets/bunny.jpg",
68
+ ratio="1280:720",
68
69
  prompt_text="The bunny is eating a carrot",
69
70
  )
70
71
  print(image_to_video.id)
@@ -93,6 +94,7 @@ async def main() -> None:
93
94
  image_to_video = await client.image_to_video.create(
94
95
  model="gen4_turbo",
95
96
  prompt_image="https://example.com/assets/bunny.jpg",
97
+ ratio="1280:720",
96
98
  prompt_text="The bunny is eating a carrot",
97
99
  )
98
100
  print(image_to_video.id)
@@ -131,6 +133,7 @@ try:
131
133
  client.image_to_video.create(
132
134
  model="gen4_turbo",
133
135
  prompt_image="https://example.com/assets/bunny.jpg",
136
+ ratio="1280:720",
134
137
  prompt_text="The bunny is eating a carrot",
135
138
  )
136
139
  except runwayml.APIConnectionError as e:
@@ -178,6 +181,7 @@ client = RunwayML(
178
181
  client.with_options(max_retries=5).image_to_video.create(
179
182
  model="gen4_turbo",
180
183
  prompt_image="https://example.com/assets/bunny.jpg",
184
+ ratio="1280:720",
181
185
  prompt_text="The bunny is eating a carrot",
182
186
  )
183
187
  ```
@@ -205,6 +209,7 @@ client = RunwayML(
205
209
  client.with_options(timeout=5.0).image_to_video.create(
206
210
  model="gen4_turbo",
207
211
  prompt_image="https://example.com/assets/bunny.jpg",
212
+ ratio="1280:720",
208
213
  prompt_text="The bunny is eating a carrot",
209
214
  )
210
215
  ```
@@ -250,6 +255,7 @@ client = RunwayML()
250
255
  response = client.image_to_video.with_raw_response.create(
251
256
  model="gen4_turbo",
252
257
  prompt_image="https://example.com/assets/bunny.jpg",
258
+ ratio="1280:720",
253
259
  prompt_text="The bunny is eating a carrot",
254
260
  )
255
261
  print(response.headers.get('X-My-Header'))
@@ -272,6 +278,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
272
278
  with client.image_to_video.with_streaming_response.create(
273
279
  model="gen4_turbo",
274
280
  prompt_image="https://example.com/assets/bunny.jpg",
281
+ ratio="1280:720",
275
282
  prompt_text="The bunny is eating a carrot",
276
283
  ) as response:
277
284
  print(response.headers.get("X-My-Header"))
@@ -34,6 +34,7 @@ client = RunwayML(
34
34
  image_to_video = client.image_to_video.create(
35
35
  model="gen4_turbo",
36
36
  prompt_image="https://example.com/assets/bunny.jpg",
37
+ ratio="1280:720",
37
38
  prompt_text="The bunny is eating a carrot",
38
39
  )
39
40
  print(image_to_video.id)
@@ -62,6 +63,7 @@ async def main() -> None:
62
63
  image_to_video = await client.image_to_video.create(
63
64
  model="gen4_turbo",
64
65
  prompt_image="https://example.com/assets/bunny.jpg",
66
+ ratio="1280:720",
65
67
  prompt_text="The bunny is eating a carrot",
66
68
  )
67
69
  print(image_to_video.id)
@@ -100,6 +102,7 @@ try:
100
102
  client.image_to_video.create(
101
103
  model="gen4_turbo",
102
104
  prompt_image="https://example.com/assets/bunny.jpg",
105
+ ratio="1280:720",
103
106
  prompt_text="The bunny is eating a carrot",
104
107
  )
105
108
  except runwayml.APIConnectionError as e:
@@ -147,6 +150,7 @@ client = RunwayML(
147
150
  client.with_options(max_retries=5).image_to_video.create(
148
151
  model="gen4_turbo",
149
152
  prompt_image="https://example.com/assets/bunny.jpg",
153
+ ratio="1280:720",
150
154
  prompt_text="The bunny is eating a carrot",
151
155
  )
152
156
  ```
@@ -174,6 +178,7 @@ client = RunwayML(
174
178
  client.with_options(timeout=5.0).image_to_video.create(
175
179
  model="gen4_turbo",
176
180
  prompt_image="https://example.com/assets/bunny.jpg",
181
+ ratio="1280:720",
177
182
  prompt_text="The bunny is eating a carrot",
178
183
  )
179
184
  ```
@@ -219,6 +224,7 @@ client = RunwayML()
219
224
  response = client.image_to_video.with_raw_response.create(
220
225
  model="gen4_turbo",
221
226
  prompt_image="https://example.com/assets/bunny.jpg",
227
+ ratio="1280:720",
222
228
  prompt_text="The bunny is eating a carrot",
223
229
  )
224
230
  print(response.headers.get('X-My-Header'))
@@ -241,6 +247,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
241
247
  with client.image_to_video.with_streaming_response.create(
242
248
  model="gen4_turbo",
243
249
  prompt_image="https://example.com/assets/bunny.jpg",
250
+ ratio="1280:720",
244
251
  prompt_text="The bunny is eating a carrot",
245
252
  ) as response:
246
253
  print(response.headers.get("X-My-Header"))
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runwayml"
3
- version = "3.0.2"
3
+ version = "3.0.4"
4
4
  description = "The official Python library for the runwayml API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"