modal 0.73.162__py3-none-any.whl → 0.73.163__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/_runtime/container_io_manager.py +11 -1
- modal/cli/programs/run_jupyter.py +1 -1
- modal/client.pyi +2 -2
- modal/image.py +1 -1
- modal/image.pyi +3 -1
- {modal-0.73.162.dist-info → modal-0.73.163.dist-info}/METADATA +1 -1
- {modal-0.73.162.dist-info → modal-0.73.163.dist-info}/RECORD +12 -12
- modal_version/_version_generated.py +1 -1
- {modal-0.73.162.dist-info → modal-0.73.163.dist-info}/WHEEL +0 -0
- {modal-0.73.162.dist-info → modal-0.73.163.dist-info}/entry_points.txt +0 -0
- {modal-0.73.162.dist-info → modal-0.73.163.dist-info}/licenses/LICENSE +0 -0
- {modal-0.73.162.dist-info → modal-0.73.163.dist-info}/top_level.txt +0 -0
@@ -17,6 +17,7 @@ from typing import (
|
|
17
17
|
Callable,
|
18
18
|
ClassVar,
|
19
19
|
Optional,
|
20
|
+
cast,
|
20
21
|
)
|
21
22
|
|
22
23
|
from google.protobuf.empty_pb2 import Empty
|
@@ -115,7 +116,16 @@ class IOContext:
|
|
115
116
|
method_name = function_inputs[0].method_name
|
116
117
|
assert all(method_name == input.method_name for input in function_inputs)
|
117
118
|
finalized_function = finalized_functions[method_name]
|
118
|
-
return cls(
|
119
|
+
return cls(
|
120
|
+
# Do explicit cast since type checker doesn't understand zip(*inputs)
|
121
|
+
cast(list[str], input_ids),
|
122
|
+
cast(list[int], retry_counts),
|
123
|
+
cast(list[str], function_call_ids),
|
124
|
+
finalized_function,
|
125
|
+
cast(list[api_pb2.FunctionInput], function_inputs),
|
126
|
+
is_batched,
|
127
|
+
client,
|
128
|
+
)
|
119
129
|
|
120
130
|
def set_cancel_callback(self, cb: Callable[[], None]):
|
121
131
|
self._cancel_callback = cb
|
@@ -57,7 +57,7 @@ def wait_for_port(url: str, q: Queue):
|
|
57
57
|
timeout=args.get("timeout"),
|
58
58
|
secrets=[Secret.from_dict({"MODAL_LAUNCH_ARGS": json.dumps(args)})],
|
59
59
|
volumes=volumes,
|
60
|
-
|
60
|
+
max_containers=1 if volume else None,
|
61
61
|
)
|
62
62
|
def run_jupyter(q: Queue):
|
63
63
|
os.makedirs("/root/lab", exist_ok=True)
|
modal/client.pyi
CHANGED
@@ -31,7 +31,7 @@ class _Client:
|
|
31
31
|
server_url: str,
|
32
32
|
client_type: int,
|
33
33
|
credentials: typing.Optional[tuple[str, str]],
|
34
|
-
version: str = "0.73.
|
34
|
+
version: str = "0.73.163",
|
35
35
|
): ...
|
36
36
|
def is_closed(self) -> bool: ...
|
37
37
|
@property
|
@@ -93,7 +93,7 @@ class Client:
|
|
93
93
|
server_url: str,
|
94
94
|
client_type: int,
|
95
95
|
credentials: typing.Optional[tuple[str, str]],
|
96
|
-
version: str = "0.73.
|
96
|
+
version: str = "0.73.163",
|
97
97
|
): ...
|
98
98
|
def is_closed(self) -> bool: ...
|
99
99
|
@property
|
modal/image.py
CHANGED
@@ -289,7 +289,7 @@ def _create_context_mount(
|
|
289
289
|
|
290
290
|
|
291
291
|
def _create_context_mount_function(
|
292
|
-
ignore: Union[Sequence[str], Callable[[Path], bool]],
|
292
|
+
ignore: Union[Sequence[str], Callable[[Path], bool], _AutoDockerIgnoreSentinel],
|
293
293
|
dockerfile_cmds: list[str] = [],
|
294
294
|
dockerfile_path: Optional[Path] = None,
|
295
295
|
context_mount: Optional[_Mount] = None,
|
modal/image.pyi
CHANGED
@@ -62,7 +62,9 @@ def _create_context_mount(
|
|
62
62
|
context_dir: pathlib.Path,
|
63
63
|
) -> typing.Optional[modal.mount._Mount]: ...
|
64
64
|
def _create_context_mount_function(
|
65
|
-
ignore: typing.Union[
|
65
|
+
ignore: typing.Union[
|
66
|
+
collections.abc.Sequence[str], collections.abc.Callable[[pathlib.Path], bool], _AutoDockerIgnoreSentinel
|
67
|
+
],
|
66
68
|
dockerfile_cmds: list[str] = [],
|
67
69
|
dockerfile_path: typing.Optional[pathlib.Path] = None,
|
68
70
|
context_mount: typing.Optional[modal.mount._Mount] = None,
|
@@ -23,7 +23,7 @@ modal/app.py,sha256=bJp7W3liuVG2VwWkG31tMFogDh84EKppzP8YJFWl3eQ,48140
|
|
23
23
|
modal/app.pyi,sha256=SkqXNrdnGIZ4MmNNvpGtzNLoUdyuvi9IjQQR_DRiRHk,26968
|
24
24
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
25
25
|
modal/client.py,sha256=U-YKSw0n7J1ZLREt9cbEJCtmHe5YoPKFxl0xlkan2yc,15565
|
26
|
-
modal/client.pyi,sha256=
|
26
|
+
modal/client.pyi,sha256=8Rv5maEBFRXXu4Gj_HFL0Jb-cJxLACmJg4Rq7z1Okog,7661
|
27
27
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
28
28
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
29
29
|
modal/cls.py,sha256=8tvSw7QFTS1FnX2MXaxagu3KwuR6y_DMwhqHv3MZ0Nk,32963
|
@@ -42,8 +42,8 @@ modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw
|
|
42
42
|
modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
|
43
43
|
modal/functions.pyi,sha256=m1PL2pwO-lnGV0uZDVCmzZ_v7Mu8ISRtxmxS15aEIAQ,14785
|
44
44
|
modal/gpu.py,sha256=Kbhs_u49FaC2Zi0TjCdrpstpRtT5eZgecynmQi5IZVE,6752
|
45
|
-
modal/image.py,sha256=
|
46
|
-
modal/image.pyi,sha256=
|
45
|
+
modal/image.py,sha256=qagLzHPbeEoM7TqvIuFJ8JV_IEJtRqiR0lik4O_K4Gw,92857
|
46
|
+
modal/image.pyi,sha256=89zv12C1sFrJs7Es9SnX23_m208ASAdeNGCVTrhjzHI,25632
|
47
47
|
modal/io_streams.py,sha256=h5O2LmbRoT9l777z3TQhCAm-JF1r7avZ2ykXlejztDs,15163
|
48
48
|
modal/io_streams.pyi,sha256=bJ7ZLmSmJ0nKoa6r4FJpbqvzdUVa0lEe0Fa-MMpMezU,5071
|
49
49
|
modal/mount.py,sha256=JII0zTS1fPCcCbZgO18okkOuTDqYCxY1DIVa6i1E9cI,32196
|
@@ -83,7 +83,7 @@ modal/volume.py,sha256=JAWeDvoAG95tMBv-fYIERyHsJPS_X_xGpxRRmYtb6j0,30096
|
|
83
83
|
modal/volume.pyi,sha256=kTsXarphjZILXci84LQy7EyC84eXUs5-7D62IM5q3eE,12491
|
84
84
|
modal/_runtime/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
|
85
85
|
modal/_runtime/asgi.py,sha256=KNarxvZI9z8fnmZl2vbkWTjnoLXs9kqOahkrbsTLkyc,22429
|
86
|
-
modal/_runtime/container_io_manager.py,sha256
|
86
|
+
modal/_runtime/container_io_manager.py,sha256=WZnvKlmHaF7yteHMoeX-jIgU4OEPLhQyAvhNXmjjVy0,44318
|
87
87
|
modal/_runtime/container_io_manager.pyi,sha256=wRd2wHMFru0NmNgiCBVdDTrJGkeVZsZvWwA1fzn8wi8,17009
|
88
88
|
modal/_runtime/execution_context.py,sha256=E6ofm6j1POXGPxS841X3V7JU6NheVb8OkQc7JpLq4Kg,2712
|
89
89
|
modal/_runtime/execution_context.pyi,sha256=wQZwMNADExkeNdB9yKX0PPojovxlFHbap3441wAsiMY,634
|
@@ -135,7 +135,7 @@ modal/cli/token.py,sha256=mxSgOWakXG6N71hQb1ko61XAR9ZGkTMZD-Txn7gmTac,1924
|
|
135
135
|
modal/cli/utils.py,sha256=hZmjyzcPjDnQSkLvycZD2LhGdcsfdZshs_rOU78EpvI,3717
|
136
136
|
modal/cli/volume.py,sha256=c2IuVNO2yJVaXmZkRh3xwQmznlRTgFoJr_BIzzqtVv0,10251
|
137
137
|
modal/cli/programs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
138
|
-
modal/cli/programs/run_jupyter.py,sha256=
|
138
|
+
modal/cli/programs/run_jupyter.py,sha256=YVvJYu927A4ji72d6i27CKfyZ_uDWteeittARtJnf7E,2775
|
139
139
|
modal/cli/programs/vscode.py,sha256=kfvhZQ4bJwtVm3MgC1V7AlygZOlKT1a33alr_uwrewA,3473
|
140
140
|
modal/experimental/__init__.py,sha256=7qlR4P4U1_sfPdiX8mhSzHR5scbS96QVxeKFnsIcpS4,6457
|
141
141
|
modal/experimental/ipython.py,sha256=epLUZeDSdE226TH_tU3igRKCiVuQi99mUOrIJ4SemOE,2792
|
@@ -146,7 +146,7 @@ modal/requirements/2024.10.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddR
|
|
146
146
|
modal/requirements/PREVIEW.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddRo,296
|
147
147
|
modal/requirements/README.md,sha256=9tK76KP0Uph7O0M5oUgsSwEZDj5y-dcUPsnpR0Sc-Ik,854
|
148
148
|
modal/requirements/base-images.json,sha256=57vMSqzMbLBxw5tFWSaMiIkkVEps4JfX5PAtXGnkS4U,740
|
149
|
-
modal-0.73.
|
149
|
+
modal-0.73.163.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
150
150
|
modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
151
151
|
modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
|
152
152
|
modal_docs/gen_reference_docs.py,sha256=cvTgltucqYLLIX84QxAwf51Z5Vc2n6cLxS8VcrxNCAo,6401
|
@@ -171,9 +171,9 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
171
171
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
172
172
|
modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
|
173
173
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
174
|
-
modal_version/_version_generated.py,sha256=
|
175
|
-
modal-0.73.
|
176
|
-
modal-0.73.
|
177
|
-
modal-0.73.
|
178
|
-
modal-0.73.
|
179
|
-
modal-0.73.
|
174
|
+
modal_version/_version_generated.py,sha256=yeuBCriiIqIyGyL5BoNw1u17X7J5otwcYZ7YApcHCeM,150
|
175
|
+
modal-0.73.163.dist-info/METADATA,sha256=sgmQaV964LPmXPCheYHZ6gDoxl_O8MWixzzdYeRjyow,2475
|
176
|
+
modal-0.73.163.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
177
|
+
modal-0.73.163.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
178
|
+
modal-0.73.163.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
179
|
+
modal-0.73.163.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|