modal 0.73.86__py3-none-any.whl → 0.73.88__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/_partial_function.py +5 -5
- modal/client.pyi +2 -2
- modal/sandbox.py +1 -0
- {modal-0.73.86.dist-info → modal-0.73.88.dist-info}/METADATA +1 -1
- {modal-0.73.86.dist-info → modal-0.73.88.dist-info}/RECORD +13 -13
- modal_proto/api.proto +3 -0
- modal_proto/api_pb2.py +270 -270
- modal_proto/api_pb2.pyi +8 -2
- modal_version/_version_generated.py +1 -1
- {modal-0.73.86.dist-info → modal-0.73.88.dist-info}/LICENSE +0 -0
- {modal-0.73.86.dist-info → modal-0.73.88.dist-info}/WHEEL +0 -0
- {modal-0.73.86.dist-info → modal-0.73.88.dist-info}/entry_points.txt +0 -0
- {modal-0.73.86.dist-info → modal-0.73.88.dist-info}/top_level.txt +0 -0
modal/_partial_function.py
CHANGED
@@ -256,10 +256,10 @@ def _fastapi_endpoint(
|
|
256
256
|
behaves as a [FastAPI](https://fastapi.tiangolo.com/) handler and should
|
257
257
|
return a response object to the caller.
|
258
258
|
|
259
|
-
Endpoints created with `@
|
259
|
+
Endpoints created with `@modal.fastapi_endpoint` are meant to be simple, single
|
260
260
|
request handlers and automatically have
|
261
261
|
[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) enabled.
|
262
|
-
For more flexibility, use `@
|
262
|
+
For more flexibility, use `@modal.asgi_app`.
|
263
263
|
|
264
264
|
To learn how to use Modal with popular web frameworks, see the
|
265
265
|
[guide on web endpoints](https://modal.com/docs/guide/webhooks).
|
@@ -316,10 +316,10 @@ def _web_endpoint(
|
|
316
316
|
behaves as a [FastAPI](https://fastapi.tiangolo.com/) handler and should
|
317
317
|
return a response object to the caller.
|
318
318
|
|
319
|
-
Endpoints created with `@
|
319
|
+
Endpoints created with `@modal.web_endpoint` are meant to be simple, single
|
320
320
|
request handlers and automatically have
|
321
321
|
[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) enabled.
|
322
|
-
For more flexibility, use `@
|
322
|
+
For more flexibility, use `@modal.asgi_app`.
|
323
323
|
|
324
324
|
To learn how to use Modal with popular web frameworks, see the
|
325
325
|
[guide on web endpoints](https://modal.com/docs/guide/webhooks).
|
@@ -337,7 +337,7 @@ def _web_endpoint(
|
|
337
337
|
raw_f = raw_f.get_raw_f()
|
338
338
|
raise InvalidError(
|
339
339
|
f"Applying decorators for {raw_f} in the wrong order!\nUsage:\n\n"
|
340
|
-
"@app.function()\n@
|
340
|
+
"@app.function()\n@modal.web_endpoint()\ndef my_webhook():\n ..."
|
341
341
|
)
|
342
342
|
|
343
343
|
return _PartialFunction(
|
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.73.
|
30
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.88"
|
31
31
|
): ...
|
32
32
|
def is_closed(self) -> bool: ...
|
33
33
|
@property
|
@@ -85,7 +85,7 @@ class Client:
|
|
85
85
|
_snapshotted: bool
|
86
86
|
|
87
87
|
def __init__(
|
88
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.
|
88
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.88"
|
89
89
|
): ...
|
90
90
|
def is_closed(self) -> bool: ...
|
91
91
|
@property
|
modal/sandbox.py
CHANGED
@@ -187,6 +187,7 @@ class _Sandbox(_Object, type_prefix="sb"):
|
|
187
187
|
),
|
188
188
|
cloud_provider_str=cloud if cloud else None, # Supersedes cloud_provider
|
189
189
|
nfs_mounts=network_file_system_mount_protos(validated_network_file_systems, False),
|
190
|
+
runtime=config.get("function_runtime"),
|
190
191
|
runtime_debug=config.get("function_runtime_debug"),
|
191
192
|
cloud_bucket_mounts=cloud_bucket_mounts_to_proto(cloud_bucket_mounts),
|
192
193
|
volume_mounts=volume_mounts,
|
@@ -8,7 +8,7 @@ modal/_ipython.py,sha256=TW1fkVOmZL3YYqdS2YlM1hqpf654Yf8ZyybHdBnlhSw,301
|
|
8
8
|
modal/_location.py,sha256=joiX-0ZeutEUDTrrqLF1GHXCdVLF-rHzstocbMcd_-k,366
|
9
9
|
modal/_object.py,sha256=JBIECWdfpRKCaCxVWZbC3Q1kF5Whk_EKvY9f4Y6AFyg,11446
|
10
10
|
modal/_output.py,sha256=Z0nngPh2mKHMQc4MQ92YjVPc3ewOLa3I4dFBlL9nvQY,25656
|
11
|
-
modal/_partial_function.py,sha256=
|
11
|
+
modal/_partial_function.py,sha256=Ll6Wkt8atWboyQQgACqNS1GUuyJ31x133Up_tZbpRbI,30054
|
12
12
|
modal/_proxy_tunnel.py,sha256=gnKyCfmVB7x2d1A6c-JDysNIP3kEFxmXzhcXhPrzPn0,1906
|
13
13
|
modal/_pty.py,sha256=JZfPDDpzqICZqtyPI_oMJf_9w-p_lLNuzHhwhodUXio,1329
|
14
14
|
modal/_resolver.py,sha256=RtoXoYzSllPlFu0D1vel_FWiEmDO7RyToiC2bxeN8ZY,6917
|
@@ -22,7 +22,7 @@ modal/app.py,sha256=ojhuLZuNZAQ1OsbDH0k6G4pm1W7bOIvZfXbaKlvQ-Ao,45622
|
|
22
22
|
modal/app.pyi,sha256=tZFbcsu20SuvfB2puxCyuXLFNJ9bQulzag55rVpgZmc,26827
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
24
24
|
modal/client.py,sha256=8SQawr7P1PNUCq1UmJMUQXG2jIo4Nmdcs311XqrNLRE,15276
|
25
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.pyi,sha256=8ldajkGsCKTq6MASQf5ym1cVRzf9oFp4cYwkNCOeSbA,7593
|
26
26
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
27
27
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
28
28
|
modal/cls.py,sha256=5DjpSBP1IyROKZm5ItDiEGdbRnfTT6K1Ul0jEvEKw_Q,31695
|
@@ -67,7 +67,7 @@ modal/retries.py,sha256=HKR2Q9aNPWkMjQ5nwobqYTuZaSuw0a8lI2zrtY5IW98,5230
|
|
67
67
|
modal/runner.py,sha256=fdUyDGN-bWu_aZBvxBO_MIgEuucsA0PgDKDHBn5k8J0,24451
|
68
68
|
modal/runner.pyi,sha256=RYEYsnofrvVroYefWLhWAy8I_uwXV9fRNuJaVgcNzrg,5278
|
69
69
|
modal/running_app.py,sha256=v61mapYNV1-O-Uaho5EfJlryMLvIT9We0amUOSvSGx8,1188
|
70
|
-
modal/sandbox.py,sha256=
|
70
|
+
modal/sandbox.py,sha256=bE7nLMge7TEjNFWo_7W4dRft-jYW9AqWHzCjiSi-Afs,32427
|
71
71
|
modal/sandbox.pyi,sha256=cLmSwI1ab-2DgEuXNf6S1PiK63wfUR9dHtxlZtSOuX8,22719
|
72
72
|
modal/schedule.py,sha256=0ZFpKs1bOxeo5n3HZjoL7OE2ktsb-_oGtq-WJEPO4tY,2615
|
73
73
|
modal/scheduler_placement.py,sha256=BAREdOY5HzHpzSBqt6jDVR6YC_jYfHMVqOzkyqQfngU,1235
|
@@ -151,10 +151,10 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
|
|
151
151
|
modal_docs/mdmd/mdmd.py,sha256=Irx49MCCTlBOP4FBdLR--JrpA3-WhsVeriq0LGgsRic,6232
|
152
152
|
modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
|
153
153
|
modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
|
154
|
-
modal_proto/api.proto,sha256=
|
154
|
+
modal_proto/api.proto,sha256=Rcp8iOjtEFpoZunsyv-MZPDh3DJuUdsbYD8TN6eVNOY,87070
|
155
155
|
modal_proto/api_grpc.py,sha256=FYGqDegM_w_qxdtlxum8k31mDibKoMvmNxv_p9cKdKs,109056
|
156
|
-
modal_proto/api_pb2.py,sha256=
|
157
|
-
modal_proto/api_pb2.pyi,sha256=
|
156
|
+
modal_proto/api_pb2.py,sha256=uo0J1zC9LnECZH4bYnAC87-JU8j7OcRdi3F7UVg9JX0,312597
|
157
|
+
modal_proto/api_pb2.pyi,sha256=9d3DU6qf8odrl0mgkoiCCQhnSuZjEFHe_QiDAyF9VL4,421753
|
158
158
|
modal_proto/api_pb2_grpc.py,sha256=DNp0Et5i_Ey4dKx_1o1LRtYhyWYyT0NzTcAY4EcHn-c,235765
|
159
159
|
modal_proto/api_pb2_grpc.pyi,sha256=RI6tWC3L8EIN4-izFSEGPPJl5Ta0lXPNuHUJaWAr35s,54892
|
160
160
|
modal_proto/modal_api_grpc.py,sha256=UG8WJU81afrWPwItWB4Ag64E9EpyREMpBbAVGVEYJiM,14550
|
@@ -168,10 +168,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
168
168
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
169
169
|
modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
|
170
170
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
171
|
-
modal_version/_version_generated.py,sha256=
|
172
|
-
modal-0.73.
|
173
|
-
modal-0.73.
|
174
|
-
modal-0.73.
|
175
|
-
modal-0.73.
|
176
|
-
modal-0.73.
|
177
|
-
modal-0.73.
|
171
|
+
modal_version/_version_generated.py,sha256=JM-GL6DIKkgUyStF9M7JW0IDETQe_mw2HCKoxWOsbCU,149
|
172
|
+
modal-0.73.88.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
173
|
+
modal-0.73.88.dist-info/METADATA,sha256=HWiY-nYdrNIlu5wkF6Kv0FJt1two763pJ9dqF3rWC70,2452
|
174
|
+
modal-0.73.88.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
175
|
+
modal-0.73.88.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
176
|
+
modal-0.73.88.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
177
|
+
modal-0.73.88.dist-info/RECORD,,
|
modal_proto/api.proto
CHANGED
@@ -2290,6 +2290,9 @@ message Sandbox {
|
|
2290
2290
|
// Specifies container runtime behavior for sandboxes which are restored from a snapshot.
|
2291
2291
|
// Set by the backend at snapshot creation time.
|
2292
2292
|
optional string runsc_runtime_version = 27;
|
2293
|
+
|
2294
|
+
// If set, overrides the runtime used by the function, either "runc" or "gvisor".
|
2295
|
+
optional string runtime = 28;
|
2293
2296
|
}
|
2294
2297
|
|
2295
2298
|
message SandboxCreateRequest {
|