runwayml 3.7.2__tar.gz → 3.8.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 (90) hide show
  1. {runwayml-3.7.2 → runwayml-3.8.0}/.gitignore +0 -1
  2. runwayml-3.8.0/.release-please-manifest.json +3 -0
  3. {runwayml-3.7.2 → runwayml-3.8.0}/CHANGELOG.md +13 -0
  4. {runwayml-3.7.2 → runwayml-3.8.0}/PKG-INFO +1 -1
  5. {runwayml-3.7.2 → runwayml-3.8.0}/pyproject.toml +1 -1
  6. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_base_client.py +4 -1
  7. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_files.py +4 -4
  8. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_version.py +1 -1
  9. runwayml-3.7.2/.release-please-manifest.json +0 -3
  10. {runwayml-3.7.2 → runwayml-3.8.0}/CONTRIBUTING.md +0 -0
  11. {runwayml-3.7.2 → runwayml-3.8.0}/LICENSE +0 -0
  12. {runwayml-3.7.2 → runwayml-3.8.0}/README.md +0 -0
  13. {runwayml-3.7.2 → runwayml-3.8.0}/SECURITY.md +0 -0
  14. {runwayml-3.7.2 → runwayml-3.8.0}/api.md +0 -0
  15. {runwayml-3.7.2 → runwayml-3.8.0}/bin/check-release-environment +0 -0
  16. {runwayml-3.7.2 → runwayml-3.8.0}/bin/publish-pypi +0 -0
  17. {runwayml-3.7.2 → runwayml-3.8.0}/examples/.keep +0 -0
  18. {runwayml-3.7.2 → runwayml-3.8.0}/examples/generate_image.py +0 -0
  19. {runwayml-3.7.2 → runwayml-3.8.0}/mypy.ini +0 -0
  20. {runwayml-3.7.2 → runwayml-3.8.0}/noxfile.py +0 -0
  21. {runwayml-3.7.2 → runwayml-3.8.0}/release-please-config.json +0 -0
  22. {runwayml-3.7.2 → runwayml-3.8.0}/requirements-dev.lock +0 -0
  23. {runwayml-3.7.2 → runwayml-3.8.0}/requirements.lock +0 -0
  24. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/__init__.py +0 -0
  25. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_client.py +0 -0
  26. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_compat.py +0 -0
  27. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_constants.py +0 -0
  28. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_exceptions.py +0 -0
  29. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_models.py +0 -0
  30. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_qs.py +0 -0
  31. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_resource.py +0 -0
  32. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_response.py +0 -0
  33. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_streaming.py +0 -0
  34. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_types.py +0 -0
  35. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/__init__.py +0 -0
  36. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_logs.py +0 -0
  37. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_proxy.py +0 -0
  38. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_reflection.py +0 -0
  39. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_resources_proxy.py +0 -0
  40. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_streams.py +0 -0
  41. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_sync.py +0 -0
  42. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_transform.py +0 -0
  43. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_typing.py +0 -0
  44. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/_utils/_utils.py +0 -0
  45. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/lib/.keep +0 -0
  46. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/lib/polling.py +0 -0
  47. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/py.typed +0 -0
  48. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/resources/__init__.py +0 -0
  49. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/resources/character_performance.py +0 -0
  50. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/resources/image_to_video.py +0 -0
  51. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/resources/organization.py +0 -0
  52. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/resources/tasks.py +0 -0
  53. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/resources/text_to_image.py +0 -0
  54. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/resources/video_upscale.py +0 -0
  55. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/__init__.py +0 -0
  56. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/character_performance_create_params.py +0 -0
  57. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/character_performance_create_response.py +0 -0
  58. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/image_to_video_create_params.py +0 -0
  59. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/image_to_video_create_response.py +0 -0
  60. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/organization_retrieve_response.py +0 -0
  61. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/organization_retrieve_usage_params.py +0 -0
  62. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/organization_retrieve_usage_response.py +0 -0
  63. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/task_retrieve_response.py +0 -0
  64. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/text_to_image_create_params.py +0 -0
  65. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/text_to_image_create_response.py +0 -0
  66. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/video_upscale_create_params.py +0 -0
  67. {runwayml-3.7.2 → runwayml-3.8.0}/src/runwayml/types/video_upscale_create_response.py +0 -0
  68. {runwayml-3.7.2 → runwayml-3.8.0}/tests/__init__.py +0 -0
  69. {runwayml-3.7.2 → runwayml-3.8.0}/tests/api_resources/__init__.py +0 -0
  70. {runwayml-3.7.2 → runwayml-3.8.0}/tests/api_resources/test_character_performance.py +0 -0
  71. {runwayml-3.7.2 → runwayml-3.8.0}/tests/api_resources/test_image_to_video.py +0 -0
  72. {runwayml-3.7.2 → runwayml-3.8.0}/tests/api_resources/test_organization.py +0 -0
  73. {runwayml-3.7.2 → runwayml-3.8.0}/tests/api_resources/test_tasks.py +0 -0
  74. {runwayml-3.7.2 → runwayml-3.8.0}/tests/api_resources/test_text_to_image.py +0 -0
  75. {runwayml-3.7.2 → runwayml-3.8.0}/tests/api_resources/test_video_upscale.py +0 -0
  76. {runwayml-3.7.2 → runwayml-3.8.0}/tests/conftest.py +0 -0
  77. {runwayml-3.7.2 → runwayml-3.8.0}/tests/sample_file.txt +0 -0
  78. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_client.py +0 -0
  79. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_deepcopy.py +0 -0
  80. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_extract_files.py +0 -0
  81. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_files.py +0 -0
  82. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_models.py +0 -0
  83. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_qs.py +0 -0
  84. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_required_args.py +0 -0
  85. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_response.py +0 -0
  86. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_streaming.py +0 -0
  87. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_transform.py +0 -0
  88. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_utils/test_proxy.py +0 -0
  89. {runwayml-3.7.2 → runwayml-3.8.0}/tests/test_utils/test_typing.py +0 -0
  90. {runwayml-3.7.2 → runwayml-3.8.0}/tests/utils.py +0 -0
@@ -1,5 +1,4 @@
1
1
  .prism.log
2
- .vscode
3
2
  _dev
4
3
 
5
4
  __pycache__
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.8.0"
3
+ }
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.8.0 (2025-07-31)
4
+
5
+ Full Changelog: [v3.7.2...v3.8.0](https://github.com/runwayml/sdk-python/compare/v3.7.2...v3.8.0)
6
+
7
+ ### Features
8
+
9
+ * **client:** support file upload requests ([9a12ee4](https://github.com/runwayml/sdk-python/commit/9a12ee479c6d796eaec598e33abf8e0664941cbb))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **project:** add settings file for vscode ([d2a3908](https://github.com/runwayml/sdk-python/commit/d2a3908101120d546238608608109960d9d9d0e1))
15
+
3
16
  ## 3.7.2 (2025-07-23)
4
17
 
5
18
  Full Changelog: [v3.7.1...v3.7.2](https://github.com/runwayml/sdk-python/compare/v3.7.1...v3.7.2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: runwayml
3
- Version: 3.7.2
3
+ Version: 3.8.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 = "3.7.2"
3
+ version = "3.8.0"
4
4
  description = "The official Python library for the runwayml API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -532,7 +532,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
532
532
  is_body_allowed = options.method.lower() != "get"
533
533
 
534
534
  if is_body_allowed:
535
- kwargs["json"] = json_data if is_given(json_data) else None
535
+ if isinstance(json_data, bytes):
536
+ kwargs["content"] = json_data
537
+ else:
538
+ kwargs["json"] = json_data if is_given(json_data) else None
536
539
  kwargs["files"] = files
537
540
  else:
538
541
  headers.pop("Content-Type", None)
@@ -69,12 +69,12 @@ def _transform_file(file: FileTypes) -> HttpxFileTypes:
69
69
  return file
70
70
 
71
71
  if is_tuple_t(file):
72
- return (file[0], _read_file_content(file[1]), *file[2:])
72
+ return (file[0], read_file_content(file[1]), *file[2:])
73
73
 
74
74
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
75
75
 
76
76
 
77
- def _read_file_content(file: FileContent) -> HttpxFileContent:
77
+ def read_file_content(file: FileContent) -> HttpxFileContent:
78
78
  if isinstance(file, os.PathLike):
79
79
  return pathlib.Path(file).read_bytes()
80
80
  return file
@@ -111,12 +111,12 @@ async def _async_transform_file(file: FileTypes) -> HttpxFileTypes:
111
111
  return file
112
112
 
113
113
  if is_tuple_t(file):
114
- return (file[0], await _async_read_file_content(file[1]), *file[2:])
114
+ return (file[0], await async_read_file_content(file[1]), *file[2:])
115
115
 
116
116
  raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
117
117
 
118
118
 
119
- async def _async_read_file_content(file: FileContent) -> HttpxFileContent:
119
+ async def async_read_file_content(file: FileContent) -> HttpxFileContent:
120
120
  if isinstance(file, os.PathLike):
121
121
  return await anyio.Path(file).read_bytes()
122
122
 
@@ -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__ = "3.7.2" # x-release-please-version
4
+ __version__ = "3.8.0" # x-release-please-version
@@ -1,3 +0,0 @@
1
- {
2
- ".": "3.7.2"
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
File without changes
File without changes