modal 0.72.34__py3-none-any.whl → 0.72.35__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.
- modal/client.pyi +2 -2
- modal/functions.py +2 -1
- modal/sandbox.py +2 -1
- {modal-0.72.34.dist-info → modal-0.72.35.dist-info}/METADATA +1 -1
- {modal-0.72.34.dist-info → modal-0.72.35.dist-info}/RECORD +13 -13
- modal_proto/api.proto +6 -2
- modal_proto/api_pb2.py +532 -532
- modal_proto/api_pb2.pyi +12 -2
- modal_version/_version_generated.py +1 -1
- {modal-0.72.34.dist-info → modal-0.72.35.dist-info}/LICENSE +0 -0
- {modal-0.72.34.dist-info → modal-0.72.35.dist-info}/WHEEL +0 -0
- {modal-0.72.34.dist-info → modal-0.72.35.dist-info}/entry_points.txt +0 -0
- {modal-0.72.34.dist-info → modal-0.72.35.dist-info}/top_level.txt +0 -0
modal/client.pyi
CHANGED
@@ -27,7 +27,7 @@ class _Client:
|
|
27
27
|
_snapshotted: bool
|
28
28
|
|
29
29
|
def __init__(
|
30
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.
|
30
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.35"
|
31
31
|
): ...
|
32
32
|
def is_closed(self) -> bool: ...
|
33
33
|
@property
|
@@ -83,7 +83,7 @@ class Client:
|
|
83
83
|
_snapshotted: bool
|
84
84
|
|
85
85
|
def __init__(
|
86
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.
|
86
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.72.35"
|
87
87
|
): ...
|
88
88
|
def is_closed(self) -> bool: ...
|
89
89
|
@property
|
modal/functions.py
CHANGED
@@ -785,7 +785,8 @@ class _Function(typing.Generic[P, ReturnType, OriginalReturnType], _Object, type
|
|
785
785
|
task_idle_timeout_secs=container_idle_timeout or 0,
|
786
786
|
concurrency_limit=concurrency_limit or 0,
|
787
787
|
pty_info=pty_info,
|
788
|
-
cloud_provider=cloud_provider,
|
788
|
+
cloud_provider=cloud_provider, # Deprecated at some point
|
789
|
+
cloud_provider_str=cloud.upper() if cloud else "", # Supersedes cloud_provider
|
789
790
|
warm_pool_size=keep_warm or 0,
|
790
791
|
runtime=config.get("function_runtime"),
|
791
792
|
runtime_debug=config.get("function_runtime_debug"),
|
modal/sandbox.py
CHANGED
@@ -165,7 +165,8 @@ class _Sandbox(_Object, type_prefix="sb"):
|
|
165
165
|
resources=convert_fn_config_to_resources_config(
|
166
166
|
cpu=cpu, memory=memory, gpu=gpu, ephemeral_disk=ephemeral_disk
|
167
167
|
),
|
168
|
-
cloud_provider=parse_cloud_provider(cloud) if cloud else None,
|
168
|
+
cloud_provider=parse_cloud_provider(cloud) if cloud else None, # Deprecated at some point
|
169
|
+
cloud_provider_str=cloud.upper() if cloud else None, # Supersedes cloud_provider
|
169
170
|
nfs_mounts=network_file_system_mount_protos(validated_network_file_systems, False),
|
170
171
|
runtime_debug=config.get("function_runtime_debug"),
|
171
172
|
cloud_bucket_mounts=cloud_bucket_mounts_to_proto(cloud_bucket_mounts),
|
@@ -20,7 +20,7 @@ modal/app.py,sha256=UOuqlCKlFAjOXCacXmoEMM90FnqFwPRXUhLh0Gi6xzg,45344
|
|
20
20
|
modal/app.pyi,sha256=5D3LkPP6qvTIl2_YgiyhNQ9X4VsOVuxd69a23UmohDg,25477
|
21
21
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
22
22
|
modal/client.py,sha256=8SQawr7P1PNUCq1UmJMUQXG2jIo4Nmdcs311XqrNLRE,15276
|
23
|
-
modal/client.pyi,sha256=
|
23
|
+
modal/client.pyi,sha256=zQPANmRIUfQZQWyiOz86Nz8i0c6erIcaS7CfGnKB_OU,7326
|
24
24
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
25
25
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
26
26
|
modal/cls.py,sha256=xHgZZAmymplw0I2YZGAA8raBboixdNKKTrnsxQZI7G8,32159
|
@@ -37,7 +37,7 @@ modal/experimental.py,sha256=npfKbyMpI41uZZs9HW_QiB3E4ykWfDXZbACXXbw6qeA,2385
|
|
37
37
|
modal/file_io.py,sha256=lcMs_E9Xfm0YX1t9U2wNIBPnqHRxmImqjLW1GHqVmyg,20945
|
38
38
|
modal/file_io.pyi,sha256=NrIoB0YjIqZ8MDMe826xAnybT0ww_kxQM3iPLo82REU,8898
|
39
39
|
modal/file_pattern_matcher.py,sha256=dSo7BMQGZBAuoBFOX-e_72HxmF3FLzjQlEtnGtJiaD4,6506
|
40
|
-
modal/functions.py,sha256=
|
40
|
+
modal/functions.py,sha256=JLQxVn1VEyQMEFzqT1ibDradkb1mvrATJ41zvfffA4I,68499
|
41
41
|
modal/functions.pyi,sha256=EcGd1uGnJVbnMmdsnANYeDjLzjaL8BREG3XgxaDPcvM,25473
|
42
42
|
modal/gpu.py,sha256=rcBwbE-_e2hEUr3VJbr1EgQDRb6aieJKx6G2oQdyBhE,7462
|
43
43
|
modal/image.py,sha256=leeY7fLfFjS0IqTi3D4cRxIDOb80BPtb3jsQfqvVJ8c,90912
|
@@ -64,7 +64,7 @@ modal/retries.py,sha256=HKR2Q9aNPWkMjQ5nwobqYTuZaSuw0a8lI2zrtY5IW98,5230
|
|
64
64
|
modal/runner.py,sha256=0SCMgKO8lZ9W1C7le1EcgViKERMXpi_-QBd6PF_MH0Q,24450
|
65
65
|
modal/runner.pyi,sha256=YmP4EOCNjjkwSIPi2Gl6hF_ji_ytkxz9dw3iB9KXaOI,5275
|
66
66
|
modal/running_app.py,sha256=v61mapYNV1-O-Uaho5EfJlryMLvIT9We0amUOSvSGx8,1188
|
67
|
-
modal/sandbox.py,sha256=
|
67
|
+
modal/sandbox.py,sha256=Au_CdStaksvu2VY6hGvSjdTxAQEsWs0ksfuuuROqmac,28955
|
68
68
|
modal/sandbox.pyi,sha256=dCyU848YARwQwoYR19o2A9L6rfB5JFz276VGQ-aZId8,20831
|
69
69
|
modal/schedule.py,sha256=0ZFpKs1bOxeo5n3HZjoL7OE2ktsb-_oGtq-WJEPO4tY,2615
|
70
70
|
modal/scheduler_placement.py,sha256=BAREdOY5HzHpzSBqt6jDVR6YC_jYfHMVqOzkyqQfngU,1235
|
@@ -149,10 +149,10 @@ modal_global_objects/mounts/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0
|
|
149
149
|
modal_global_objects/mounts/modal_client_package.py,sha256=W0E_yShsRojPzWm6LtIQqNVolapdnrZkm2hVEQuZK_4,767
|
150
150
|
modal_global_objects/mounts/python_standalone.py,sha256=pEML5GaV2_0ahci_1vpfc_FnySpsfi2fhYmFF5I7IiQ,1837
|
151
151
|
modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
|
152
|
-
modal_proto/api.proto,sha256=
|
152
|
+
modal_proto/api.proto,sha256=smkhq5gGvZ6HWMc_-zv6ex3Pj76ySdqrmtHn_Ic0iFg,84501
|
153
153
|
modal_proto/api_grpc.py,sha256=Bcgo5hmJ0FCAVvWAm7X7Qki2GZ2gvAu3kOtqzRtvoMc,106793
|
154
|
-
modal_proto/api_pb2.py,sha256=
|
155
|
-
modal_proto/api_pb2.pyi,sha256=
|
154
|
+
modal_proto/api_pb2.py,sha256=Qy1Z-i65J6CKrSpDJ0IsvA48JJr1pGn8-YsUFEag6lY,307334
|
155
|
+
modal_proto/api_pb2.pyi,sha256=9pzRwWw2GKZsFwsU5VmGuBQvZq6Jb9GfJdM28S3KjuQ,411354
|
156
156
|
modal_proto/api_pb2_grpc.py,sha256=OTPQgFBajKwy7fhAFEewDjY6lK49C60Z9vTqUpQy_oY,230822
|
157
157
|
modal_proto/api_pb2_grpc.pyi,sha256=mwP2mw6UE46CHlraqicXHsgyGPtV0mCy96LwnFMz74s,53787
|
158
158
|
modal_proto/modal_api_grpc.py,sha256=C5QcdsBWEvF9ufbEjdyPQ5IDDexMdAI2_CQ_U2nEYuc,14258
|
@@ -166,10 +166,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
166
166
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
167
167
|
modal_version/__init__.py,sha256=kGya2ZlItX2zB7oHORs-wvP4PG8lg_mtbi1QIK3G6SQ,470
|
168
168
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
169
|
-
modal_version/_version_generated.py,sha256=
|
170
|
-
modal-0.72.
|
171
|
-
modal-0.72.
|
172
|
-
modal-0.72.
|
173
|
-
modal-0.72.
|
174
|
-
modal-0.72.
|
175
|
-
modal-0.72.
|
169
|
+
modal_version/_version_generated.py,sha256=Risj0f23NjXwV5p-2zAoUMadoNdAPr6CGxd8K2p7sDk,149
|
170
|
+
modal-0.72.35.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
171
|
+
modal-0.72.35.dist-info/METADATA,sha256=aHEZox4anXEutB5lNyiMsxgWcHVypn-HV4-8AsxnxoE,2329
|
172
|
+
modal-0.72.35.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
173
|
+
modal-0.72.35.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
174
|
+
modal-0.72.35.dist-info/top_level.txt,sha256=1nvYbOSIKcmU50fNrpnQnrrOpj269ei3LzgB6j9xGqg,64
|
175
|
+
modal-0.72.35.dist-info/RECORD,,
|
modal_proto/api.proto
CHANGED
@@ -1163,7 +1163,7 @@ message Function {
|
|
1163
1163
|
|
1164
1164
|
uint32 task_idle_timeout_secs = 25;
|
1165
1165
|
|
1166
|
-
optional CloudProvider cloud_provider = 26;
|
1166
|
+
optional CloudProvider cloud_provider = 26; // Deprecated at some point
|
1167
1167
|
|
1168
1168
|
uint32 warm_pool_size = 27;
|
1169
1169
|
|
@@ -1257,6 +1257,8 @@ message Function {
|
|
1257
1257
|
bool method_definitions_set = 75;
|
1258
1258
|
|
1259
1259
|
bool _experimental_custom_scaling = 76;
|
1260
|
+
|
1261
|
+
string cloud_provider_str = 77; // Supersedes cloud_provider
|
1260
1262
|
}
|
1261
1263
|
|
1262
1264
|
message FunctionAsyncInvokeRequest {
|
@@ -2193,7 +2195,7 @@ message Sandbox {
|
|
2193
2195
|
repeated string secret_ids = 4;
|
2194
2196
|
|
2195
2197
|
Resources resources = 5;
|
2196
|
-
CloudProvider cloud_provider = 6;
|
2198
|
+
CloudProvider cloud_provider = 6; // Deprecated at some point
|
2197
2199
|
|
2198
2200
|
uint32 timeout_secs = 7;
|
2199
2201
|
|
@@ -2237,6 +2239,8 @@ message Sandbox {
|
|
2237
2239
|
// Used to pin gVisor version for memory-snapshottable sandboxes.
|
2238
2240
|
// This field is set by the server, not the client.
|
2239
2241
|
optional uint32 snapshot_version = 25;
|
2242
|
+
|
2243
|
+
string cloud_provider_str = 26; // Supersedes cloud_provider
|
2240
2244
|
}
|
2241
2245
|
|
2242
2246
|
message SandboxCreateRequest {
|