runwayml 2.1.10__tar.gz → 2.2.0__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.2.0/.release-please-manifest.json +3 -0
  2. {runwayml-2.1.10 → runwayml-2.2.0}/CHANGELOG.md +17 -0
  3. {runwayml-2.1.10 → runwayml-2.2.0}/PKG-INFO +1 -1
  4. {runwayml-2.1.10 → runwayml-2.2.0}/pyproject.toml +2 -2
  5. {runwayml-2.1.10 → runwayml-2.2.0}/requirements-dev.lock +1 -1
  6. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_base_client.py +9 -2
  7. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_constants.py +1 -1
  8. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_models.py +1 -1
  9. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_version.py +1 -1
  10. runwayml-2.1.10/.release-please-manifest.json +0 -3
  11. {runwayml-2.1.10 → runwayml-2.2.0}/.gitignore +0 -0
  12. {runwayml-2.1.10 → runwayml-2.2.0}/CONTRIBUTING.md +0 -0
  13. {runwayml-2.1.10 → runwayml-2.2.0}/LICENSE +0 -0
  14. {runwayml-2.1.10 → runwayml-2.2.0}/README.md +0 -0
  15. {runwayml-2.1.10 → runwayml-2.2.0}/SECURITY.md +0 -0
  16. {runwayml-2.1.10 → runwayml-2.2.0}/api.md +0 -0
  17. {runwayml-2.1.10 → runwayml-2.2.0}/bin/check-release-environment +0 -0
  18. {runwayml-2.1.10 → runwayml-2.2.0}/bin/publish-pypi +0 -0
  19. {runwayml-2.1.10 → runwayml-2.2.0}/examples/.keep +0 -0
  20. {runwayml-2.1.10 → runwayml-2.2.0}/mypy.ini +0 -0
  21. {runwayml-2.1.10 → runwayml-2.2.0}/noxfile.py +0 -0
  22. {runwayml-2.1.10 → runwayml-2.2.0}/release-please-config.json +0 -0
  23. {runwayml-2.1.10 → runwayml-2.2.0}/requirements.lock +0 -0
  24. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/__init__.py +0 -0
  25. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_client.py +0 -0
  26. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_compat.py +0 -0
  27. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_exceptions.py +0 -0
  28. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_files.py +0 -0
  29. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_qs.py +0 -0
  30. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_resource.py +0 -0
  31. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_response.py +0 -0
  32. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_streaming.py +0 -0
  33. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_types.py +0 -0
  34. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/__init__.py +0 -0
  35. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_logs.py +0 -0
  36. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_proxy.py +0 -0
  37. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_reflection.py +0 -0
  38. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_streams.py +0 -0
  39. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_sync.py +0 -0
  40. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_transform.py +0 -0
  41. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_typing.py +0 -0
  42. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/_utils/_utils.py +0 -0
  43. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/lib/.keep +0 -0
  44. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/py.typed +0 -0
  45. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/resources/__init__.py +0 -0
  46. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/resources/image_to_video.py +0 -0
  47. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/resources/tasks.py +0 -0
  48. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/types/__init__.py +0 -0
  49. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/types/image_to_video_create_params.py +0 -0
  50. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/types/image_to_video_create_response.py +0 -0
  51. {runwayml-2.1.10 → runwayml-2.2.0}/src/runwayml/types/task_retrieve_response.py +0 -0
  52. {runwayml-2.1.10 → runwayml-2.2.0}/tests/__init__.py +0 -0
  53. {runwayml-2.1.10 → runwayml-2.2.0}/tests/api_resources/__init__.py +0 -0
  54. {runwayml-2.1.10 → runwayml-2.2.0}/tests/api_resources/test_image_to_video.py +0 -0
  55. {runwayml-2.1.10 → runwayml-2.2.0}/tests/api_resources/test_tasks.py +0 -0
  56. {runwayml-2.1.10 → runwayml-2.2.0}/tests/conftest.py +0 -0
  57. {runwayml-2.1.10 → runwayml-2.2.0}/tests/sample_file.txt +0 -0
  58. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_client.py +0 -0
  59. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_deepcopy.py +0 -0
  60. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_extract_files.py +0 -0
  61. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_files.py +0 -0
  62. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_models.py +0 -0
  63. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_qs.py +0 -0
  64. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_required_args.py +0 -0
  65. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_response.py +0 -0
  66. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_streaming.py +0 -0
  67. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_transform.py +0 -0
  68. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_utils/test_proxy.py +0 -0
  69. {runwayml-2.1.10 → runwayml-2.2.0}/tests/test_utils/test_typing.py +0 -0
  70. {runwayml-2.1.10 → runwayml-2.2.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "2.2.0"
3
+ }
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.0 (2025-02-06)
4
+
5
+ Full Changelog: [v2.1.11...v2.2.0](https://github.com/runwayml/sdk-python/compare/v2.1.11...v2.2.0)
6
+
7
+ ### Features
8
+
9
+ * **client:** send `X-Stainless-Read-Timeout` header ([#87](https://github.com/runwayml/sdk-python/issues/87)) ([43e6f00](https://github.com/runwayml/sdk-python/commit/43e6f005f611ddc87a11d4f7244c883a25a5c8ed))
10
+
11
+ ## 2.1.11 (2025-02-04)
12
+
13
+ Full Changelog: [v2.1.10...v2.1.11](https://github.com/runwayml/sdk-python/compare/v2.1.10...v2.1.11)
14
+
15
+ ### Chores
16
+
17
+ * **internal:** bummp ruff dependency ([#83](https://github.com/runwayml/sdk-python/issues/83)) ([3d1be9d](https://github.com/runwayml/sdk-python/commit/3d1be9d17d6f1bc737cf416c08cc9710aa61c94b))
18
+ * **internal:** change default timeout to an int ([#82](https://github.com/runwayml/sdk-python/issues/82)) ([38e5767](https://github.com/runwayml/sdk-python/commit/38e5767b267c108c8ef03b0fdb2508b20f74e018))
19
+
3
20
  ## 2.1.10 (2025-01-24)
4
21
 
5
22
  Full Changelog: [v2.1.9...v2.1.10](https://github.com/runwayml/sdk-python/compare/v2.1.9...v2.1.10)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runwayml
3
- Version: 2.1.10
3
+ Version: 2.2.0
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runwayml"
3
- version = "2.1.10"
3
+ version = "2.2.0"
4
4
  description = "The official Python library for the runwayml API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -177,7 +177,7 @@ select = [
177
177
  "T201",
178
178
  "T203",
179
179
  # misuse of typing.TYPE_CHECKING
180
- "TCH004",
180
+ "TC004",
181
181
  # import rules
182
182
  "TID251",
183
183
  ]
@@ -78,7 +78,7 @@ pytz==2023.3.post1
78
78
  # via dirty-equals
79
79
  respx==0.22.0
80
80
  rich==13.7.1
81
- ruff==0.6.9
81
+ ruff==0.9.4
82
82
  setuptools==68.2.2
83
83
  # via nodeenv
84
84
  six==1.16.0
@@ -418,10 +418,17 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
418
418
  if idempotency_header and options.method.lower() != "get" and idempotency_header not in headers:
419
419
  headers[idempotency_header] = options.idempotency_key or self._idempotency_key()
420
420
 
421
- # Don't set the retry count header if it was already set or removed by the caller. We check
421
+ # Don't set these headers if they were already set or removed by the caller. We check
422
422
  # `custom_headers`, which can contain `Omit()`, instead of `headers` to account for the removal case.
423
- if "x-stainless-retry-count" not in (header.lower() for header in custom_headers):
423
+ lower_custom_headers = [header.lower() for header in custom_headers]
424
+ if "x-stainless-retry-count" not in lower_custom_headers:
424
425
  headers["x-stainless-retry-count"] = str(retries_taken)
426
+ if "x-stainless-read-timeout" not in lower_custom_headers:
427
+ timeout = self.timeout if isinstance(options.timeout, NotGiven) else options.timeout
428
+ if isinstance(timeout, Timeout):
429
+ timeout = timeout.read
430
+ if timeout is not None:
431
+ headers["x-stainless-read-timeout"] = str(timeout)
425
432
 
426
433
  return headers
427
434
 
@@ -6,7 +6,7 @@ RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
6
6
  OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
7
7
 
8
8
  # default timeout is 1 minute
9
- DEFAULT_TIMEOUT = httpx.Timeout(timeout=60.0, connect=5.0)
9
+ DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
10
10
  DEFAULT_MAX_RETRIES = 2
11
11
  DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
12
12
 
@@ -172,7 +172,7 @@ class BaseModel(pydantic.BaseModel):
172
172
  @override
173
173
  def __str__(self) -> str:
174
174
  # mypy complains about an invalid self arg
175
- return f'{self.__repr_name__()}({self.__repr_str__(", ")})' # type: ignore[misc]
175
+ return f"{self.__repr_name__()}({self.__repr_str__(', ')})" # type: ignore[misc]
176
176
 
177
177
  # Override the 'construct' method in a way that supports recursive parsing without validation.
178
178
  # Based on https://github.com/samuelcolvin/pydantic/issues/1168#issuecomment-817742836.
@@ -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.10" # x-release-please-version
4
+ __version__ = "2.2.0" # x-release-please-version
@@ -1,3 +0,0 @@
1
- {
2
- ".": "2.1.10"
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