runwayml 3.1.0__py3-none-any.whl → 3.3.0__py3-none-any.whl
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/_base_client.py +6 -0
- runwayml/_models.py +2 -0
- runwayml/_types.py +2 -0
- runwayml/_version.py +1 -1
- runwayml/resources/text_to_image.py +12 -0
- runwayml/types/text_to_image_create_params.py +6 -0
- {runwayml-3.1.0.dist-info → runwayml-3.3.0.dist-info}/METADATA +2 -3
- {runwayml-3.1.0.dist-info → runwayml-3.3.0.dist-info}/RECORD +10 -10
- {runwayml-3.1.0.dist-info → runwayml-3.3.0.dist-info}/WHEEL +0 -0
- {runwayml-3.1.0.dist-info → runwayml-3.3.0.dist-info}/licenses/LICENSE +0 -0
runwayml/_base_client.py
CHANGED
@@ -960,6 +960,9 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
960
960
|
if self.custom_auth is not None:
|
961
961
|
kwargs["auth"] = self.custom_auth
|
962
962
|
|
963
|
+
if options.follow_redirects is not None:
|
964
|
+
kwargs["follow_redirects"] = options.follow_redirects
|
965
|
+
|
963
966
|
log.debug("Sending HTTP Request: %s %s", request.method, request.url)
|
964
967
|
|
965
968
|
response = None
|
@@ -1460,6 +1463,9 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
1460
1463
|
if self.custom_auth is not None:
|
1461
1464
|
kwargs["auth"] = self.custom_auth
|
1462
1465
|
|
1466
|
+
if options.follow_redirects is not None:
|
1467
|
+
kwargs["follow_redirects"] = options.follow_redirects
|
1468
|
+
|
1463
1469
|
log.debug("Sending HTTP Request: %s %s", request.method, request.url)
|
1464
1470
|
|
1465
1471
|
response = None
|
runwayml/_models.py
CHANGED
@@ -737,6 +737,7 @@ class FinalRequestOptionsInput(TypedDict, total=False):
|
|
737
737
|
idempotency_key: str
|
738
738
|
json_data: Body
|
739
739
|
extra_json: AnyMapping
|
740
|
+
follow_redirects: bool
|
740
741
|
|
741
742
|
|
742
743
|
@final
|
@@ -750,6 +751,7 @@ class FinalRequestOptions(pydantic.BaseModel):
|
|
750
751
|
files: Union[HttpxRequestFiles, None] = None
|
751
752
|
idempotency_key: Union[str, None] = None
|
752
753
|
post_parser: Union[Callable[[Any], Any], NotGiven] = NotGiven()
|
754
|
+
follow_redirects: Union[bool, None] = None
|
753
755
|
|
754
756
|
# It should be noted that we cannot use `json` here as that would override
|
755
757
|
# a BaseModel method in an incompatible fashion.
|
runwayml/_types.py
CHANGED
@@ -100,6 +100,7 @@ class RequestOptions(TypedDict, total=False):
|
|
100
100
|
params: Query
|
101
101
|
extra_json: AnyMapping
|
102
102
|
idempotency_key: str
|
103
|
+
follow_redirects: bool
|
103
104
|
|
104
105
|
|
105
106
|
# Sentinel class used until PEP 0661 is accepted
|
@@ -215,3 +216,4 @@ class _GenericAlias(Protocol):
|
|
215
216
|
|
216
217
|
class HttpxSendArgs(TypedDict, total=False):
|
217
218
|
auth: httpx.Auth
|
219
|
+
follow_redirects: bool
|
runwayml/_version.py
CHANGED
@@ -60,6 +60,12 @@ class TextToImageResource(SyncAPIResource):
|
|
60
60
|
"1080:1440",
|
61
61
|
"1808:768",
|
62
62
|
"2112:912",
|
63
|
+
"1280:720",
|
64
|
+
"720:1280",
|
65
|
+
"720:720",
|
66
|
+
"960:720",
|
67
|
+
"720:960",
|
68
|
+
"1680:720",
|
63
69
|
],
|
64
70
|
content_moderation: text_to_image_create_params.ContentModeration | NotGiven = NOT_GIVEN,
|
65
71
|
reference_images: Iterable[text_to_image_create_params.ReferenceImage] | NotGiven = NOT_GIVEN,
|
@@ -155,6 +161,12 @@ class AsyncTextToImageResource(AsyncAPIResource):
|
|
155
161
|
"1080:1440",
|
156
162
|
"1808:768",
|
157
163
|
"2112:912",
|
164
|
+
"1280:720",
|
165
|
+
"720:1280",
|
166
|
+
"720:720",
|
167
|
+
"960:720",
|
168
|
+
"720:960",
|
169
|
+
"1680:720",
|
158
170
|
],
|
159
171
|
content_moderation: text_to_image_create_params.ContentModeration | NotGiven = NOT_GIVEN,
|
160
172
|
reference_images: Iterable[text_to_image_create_params.ReferenceImage] | NotGiven = NOT_GIVEN,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: runwayml
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.3.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
|
@@ -127,9 +127,8 @@ text_to_image = client.text_to_image.create(
|
|
127
127
|
model="gen4_image",
|
128
128
|
prompt_text="promptText",
|
129
129
|
ratio="1920:1080",
|
130
|
-
content_moderation={"public_figure_threshold": "auto"},
|
131
130
|
)
|
132
|
-
print(text_to_image.
|
131
|
+
print(text_to_image.id)
|
133
132
|
```
|
134
133
|
|
135
134
|
## Handling errors
|
@@ -1,17 +1,17 @@
|
|
1
1
|
runwayml/__init__.py,sha256=w7Il_Fc71HY9Ebs62Q5VLcsCQGraefXwcOmtzeg4r5I,2587
|
2
|
-
runwayml/_base_client.py,sha256=
|
2
|
+
runwayml/_base_client.py,sha256=C7nXQufaETXu-KXQeQtb6h6lEMCA-xWQUKWlIh9x0Ro,65094
|
3
3
|
runwayml/_client.py,sha256=e2fMzTRERF3s2UDqSfaK7wXl_E9FJy8KjBxUsFvLRBs,17814
|
4
4
|
runwayml/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
5
5
|
runwayml/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
6
6
|
runwayml/_exceptions.py,sha256=p2Q8kywHCVQzArLQL4Ht-HetTBhAvevU6yDvEq7PpIE,3224
|
7
7
|
runwayml/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
8
|
-
runwayml/_models.py,sha256=
|
8
|
+
runwayml/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
|
9
9
|
runwayml/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
10
10
|
runwayml/_resource.py,sha256=BF-j3xY5eRTKmuTxg8eDhLtLP4MLB1phDh_B6BKipKA,1112
|
11
11
|
runwayml/_response.py,sha256=WxjSEXX-j01ZhlSxYyMCVSEKxo20pgy40RA7iyski8M,28800
|
12
12
|
runwayml/_streaming.py,sha256=NSVuAgknVQWU1cgZEjQn01IdZKKynb5rOeYp5Lo-OEQ,10108
|
13
|
-
runwayml/_types.py,sha256=
|
14
|
-
runwayml/_version.py,sha256=
|
13
|
+
runwayml/_types.py,sha256=YL6SdhLq5SHlT644GjzDwOJ_Slyr8QDRCoacOp4trhI,6199
|
14
|
+
runwayml/_version.py,sha256=iyQEcKcorFeYuq-S88vke94gaOp6VY42fw2ih8_8G8k,160
|
15
15
|
runwayml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
runwayml/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
runwayml/_utils/_logs.py,sha256=ZfS5W59hdqEBVV86lNrk28PhvUxtHOzs9JqiLhSu0pI,780
|
@@ -28,15 +28,15 @@ runwayml/resources/__init__.py,sha256=ucZzkzpJ_Wn8QymaDzZyb1MO9YJPGCp39yYRd7tOAo
|
|
28
28
|
runwayml/resources/image_to_video.py,sha256=dS2yTuOx10xSUAhAZ0FmuAEDXqo-WLyWe41aVovR5yo,10120
|
29
29
|
runwayml/resources/organization.py,sha256=XBg5nhkycPU3rllRvf9aaeHuZNtzGDKHlLPrPqDCAsw,5419
|
30
30
|
runwayml/resources/tasks.py,sha256=-VT3qetYcaqn4FskekxhN_fCTozMl1GqxGpGwxV8M60,9673
|
31
|
-
runwayml/resources/text_to_image.py,sha256=
|
31
|
+
runwayml/resources/text_to_image.py,sha256=E-Fbu2fL96QFbp_j_hz7fw9iQTQwlqjpzH32K4HwoRg,9958
|
32
32
|
runwayml/types/__init__.py,sha256=AHeIAsK4Yw29OpmnNVTsQZkwHszr5ZJq6fYus_RbTis,695
|
33
33
|
runwayml/types/image_to_video_create_params.py,sha256=TgoNwKkz_PK_sFBeATqMFkXpBhdx8DSZTLA6hLbMhFM,2352
|
34
34
|
runwayml/types/image_to_video_create_response.py,sha256=WvZHbZxxJz8KerRNogzb1RYBrxa1x0iCPDi9-LCpHyE,345
|
35
35
|
runwayml/types/organization_retrieve_response.py,sha256=SQxoIUxCnDDBv83A3K7TmNjcAdz_SpHB4MGA9WOJ00w,3553
|
36
36
|
runwayml/types/task_retrieve_response.py,sha256=v8y2bLxsW6srzScW-B3Akv72q_PI_NQmduGrGRQMHds,2139
|
37
|
-
runwayml/types/text_to_image_create_params.py,sha256=
|
37
|
+
runwayml/types/text_to_image_create_params.py,sha256=I8Dr4UG6VnciQ87zN6qp03FKwlQNnrwyn6cacHLqw20,2794
|
38
38
|
runwayml/types/text_to_image_create_response.py,sha256=koMzUg82dYFQPp77wln3UR1z8WO2sHCNMWGgoQ9Id8M,262
|
39
|
-
runwayml-3.
|
40
|
-
runwayml-3.
|
41
|
-
runwayml-3.
|
42
|
-
runwayml-3.
|
39
|
+
runwayml-3.3.0.dist-info/METADATA,sha256=w0IyAYnBwQCYp_3EaV3HIDkcPbRX84VALDHZOG535L4,13986
|
40
|
+
runwayml-3.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
41
|
+
runwayml-3.3.0.dist-info/licenses/LICENSE,sha256=baeFj6izBWIm6A5_7N3-WAsy_VYpDF05Dd4zS1zsfZI,11338
|
42
|
+
runwayml-3.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|