modAL 1.5.2.dev19__py3-none-any.whl → 1.5.2.dev20__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/_environments.py CHANGED
@@ -103,9 +103,6 @@ class _EnvironmentManager:
103
103
  await client.stub.EnvironmentDelete(api_pb2.EnvironmentDeleteRequest(name=name))
104
104
 
105
105
 
106
- MemberRole = Literal["viewer", "contributor"]
107
-
108
-
109
106
  def _role_to_proto(role: str) -> "api_pb2.EnvironmentRole.ValueType":
110
107
  match role:
111
108
  case "viewer":
@@ -116,7 +113,7 @@ def _role_to_proto(role: str) -> "api_pb2.EnvironmentRole.ValueType":
116
113
  raise InvalidError(f"Invalid Environment role: {role!r} (expected 'viewer' or 'contributor')")
117
114
 
118
115
 
119
- def _role_from_proto(proto_value: int) -> MemberRole:
116
+ def _role_from_proto(proto_value: int) -> str:
120
117
  match proto_value:
121
118
  case api_pb2.ENVIRONMENT_ROLE_VIEWER:
122
119
  return "viewer"
@@ -137,7 +134,7 @@ class _EnvironmentMembersManager:
137
134
  """mdmd:hidden"""
138
135
  self._environment = environment
139
136
 
140
- async def list(self) -> dict[Literal["users", "service_users"], dict[str, MemberRole]]:
137
+ async def list(self) -> dict[Literal["users", "service_users"], dict[str, str]]:
141
138
  """Return the members of a restricted Environment with their roles.
142
139
 
143
140
  **Examples:**
@@ -155,8 +152,8 @@ class _EnvironmentMembersManager:
155
152
  req = api_pb2.EnvironmentGetManagedRequest(environment_id=self._environment.object_id)
156
153
  resp = await self._environment.client.stub.EnvironmentGetManaged(req)
157
154
 
158
- users: dict[str, MemberRole] = {}
159
- service_users: dict[str, MemberRole] = {}
155
+ users: dict[str, str] = {}
156
+ service_users: dict[str, str] = {}
160
157
  for principal in resp.principal_roles:
161
158
  role = _role_from_proto(principal.role)
162
159
  if principal.user_id:
@@ -169,8 +166,8 @@ class _EnvironmentMembersManager:
169
166
  async def update(
170
167
  self,
171
168
  *,
172
- users: Mapping[str, MemberRole] | None = None,
173
- service_users: Mapping[str, MemberRole] | None = None,
169
+ users: Mapping[str, str] | None = None,
170
+ service_users: Mapping[str, str] | None = None,
174
171
  ) -> None:
175
172
  """Add or modify roles for members of a restricted Environment.
176
173
 
modal/_image.py CHANGED
@@ -117,13 +117,34 @@ def _validate_image_tag(tag: str) -> None:
117
117
  check_object_name(tag, "Image tag")
118
118
 
119
119
 
120
- def _parse_named_image_ref(name: str) -> str:
120
+ def _parse_named_image_ref(name: str) -> tuple[str, str]:
121
+ """Parse an image reference, returning (namespace_prefix, name_tag).
122
+
123
+ If the name contains a '/', the part before the last '/' is extracted as
124
+ a namespace prefix (intended for environment/name or workspace/env/name
125
+ syntax). The actual image name (after the last '/') is validated as a
126
+ standard object name.
127
+
128
+ Returns a tuple of (prefix, "full_name:tag") where prefix is empty string
129
+ if no '/' is present.
130
+ """
121
131
  image_name, sep, tag = name.partition(":")
122
132
  if not sep:
123
133
  tag = "latest"
134
+
135
+ prefix = ""
136
+ if "/" in image_name:
137
+ prefix, image_name = image_name.rsplit("/", 1)
138
+ if not prefix:
139
+ raise InvalidError("Invalid Image name: '/' prefix must be non-empty.")
140
+ if not image_name:
141
+ raise InvalidError("Invalid Image name: name after '/' must be non-empty.")
142
+
124
143
  _validate_image_name(image_name)
125
144
  _validate_image_tag(tag)
126
- return f"{image_name}:{tag}"
145
+
146
+ full_name = f"{prefix}/{image_name}" if prefix else image_name
147
+ return prefix, f"{full_name}:{tag}"
127
148
 
128
149
 
129
150
  def _validate_python_version(
@@ -2923,12 +2944,15 @@ class _Image(_Object, type_prefix="im"):
2923
2944
  ...
2924
2945
  ```
2925
2946
  """
2926
- tag = _parse_named_image_ref(name)
2947
+ namespace_prefix, tag = _parse_named_image_ref(name)
2948
+
2949
+ if namespace_prefix and environment_name:
2950
+ raise InvalidError("Cannot specify 'environment_name' when the image name contains a '/'.")
2927
2951
 
2928
2952
  async def _load(self: _Image, resolver: Resolver, load_context: LoadContext, existing_object_id: str | None):
2929
2953
  req = api_pb2.ImageGetByTagRequest(
2930
2954
  tag=tag,
2931
- environment_name=load_context.environment_name,
2955
+ environment_name="" if namespace_prefix else load_context.environment_name,
2932
2956
  )
2933
2957
  response = await load_context.client.stub.ImageGetByTag(req)
2934
2958
  self._hydrate(response.image_id, load_context.client, None)
@@ -2963,15 +2987,20 @@ class _Image(_Object, type_prefix="im"):
2963
2987
  image.publish("my-image-with-numpy:v1")
2964
2988
  ```
2965
2989
  """
2966
- tag = _parse_named_image_ref(name)
2990
+ namespace_prefix, tag = _parse_named_image_ref(name)
2991
+
2992
+ if namespace_prefix:
2993
+ if environment_name:
2994
+ raise InvalidError("Cannot specify 'environment_name' when the image name contains a '/'.")
2995
+ resolved_env = ""
2996
+ else:
2997
+ resolved_env = environment_name or config.get("environment") or ""
2967
2998
 
2968
2999
  if self._object_id is None:
2969
3000
  raise InvalidError("Cannot publish an image that has not been created yet. Call `.build()` first.")
2970
3001
 
2971
3002
  _client = client or await _Client.from_env()
2972
3003
 
2973
- resolved_env = environment_name or config.get("environment") or ""
2974
-
2975
3004
  await _client.stub.ImagePublish(
2976
3005
  api_pb2.ImagePublishRequest(
2977
3006
  image_id=self._object_id,
modal/_workspace.py CHANGED
@@ -13,13 +13,19 @@ from ._object import _Object
13
13
  from ._resolver import Resolver
14
14
  from ._utils.time_utils import timestamp_to_localized_dt
15
15
  from .client import _Client
16
- from .types import BillingReportItem, MemberRole, ProxyTokenInfo, TokenData, WorkspaceMemberInfo, WorkspaceSettings
16
+ from .types import (
17
+ BillingReportItem,
18
+ ProxyTokenInfo,
19
+ TokenData,
20
+ WorkspaceMemberInfo,
21
+ WorkspaceSettings,
22
+ )
17
23
 
18
24
 
19
- def _member_role_from_proto(proto_value: int) -> MemberRole:
25
+ def _member_role_from_proto(proto_value: int) -> str:
20
26
  match proto_value:
21
27
  case api_pb2.MEMBER_ROLE_USER:
22
- return "user"
28
+ return "member"
23
29
  case api_pb2.MEMBER_ROLE_MANAGER:
24
30
  return "manager"
25
31
  case api_pb2.MEMBER_ROLE_OWNER:
modal/cli/container.py CHANGED
@@ -202,20 +202,20 @@ async def logs(
202
202
  task_info_resp = await client.stub.TaskGetInfo(api_pb2.TaskGetInfoRequest(task_id=task_id))
203
203
  app_id = task_info_resp.app_id
204
204
 
205
- if not task_info_resp.info.started_at:
206
- # Unlikely race or Modal backend issue, don't treat as a usage exception
205
+ if not task_info_resp.info.enqueued_at:
207
206
  return
208
- container_started_dt = datetime.fromtimestamp(task_info_resp.info.started_at, timezone.utc)
207
+
208
+ container_enqueued_dt = datetime.fromtimestamp(task_info_resp.info.enqueued_at, timezone.utc)
209
209
 
210
210
  now = datetime.now(timezone.utc)
211
211
  if all_logs:
212
- since_dt = container_started_dt
212
+ since_dt = container_enqueued_dt
213
213
  if task_info_resp.info.finished_at:
214
214
  until_dt = datetime.fromtimestamp(task_info_resp.info.finished_at, timezone.utc)
215
215
  else:
216
216
  until_dt = now
217
217
  else:
218
- since_dt = _parse_time_arg(since, default=container_started_dt)
218
+ since_dt = _parse_time_arg(since, default=container_enqueued_dt)
219
219
  if task_info_resp.info.finished_at:
220
220
  default_until_dt = datetime.fromtimestamp(task_info_resp.info.finished_at, timezone.utc)
221
221
  else:
modal/cli/environment.py CHANGED
@@ -7,7 +7,7 @@ from click import UsageError
7
7
  from rich.text import Text
8
8
 
9
9
  from modal import environments
10
- from modal._environments import MemberRole, _Environment
10
+ from modal._environments import _Environment
11
11
  from modal._utils.async_utils import synchronizer
12
12
  from modal._utils.name_utils import check_environment_name
13
13
  from modal._utils.time_utils import format_interval
@@ -158,7 +158,7 @@ def members_list(environment: str, json: bool = False):
158
158
  "--role", type=click.Choice(["contributor", "viewer"]), required=True, help="Role to assign to the member"
159
159
  )
160
160
  @service_user_option
161
- def members_update(environment: str, member: str, role: MemberRole, service_user: bool = False):
161
+ def members_update(environment: str, member: str, role: str, service_user: bool = False):
162
162
  env = Environment.from_name(environment)
163
163
  if service_user:
164
164
  env.members.update(service_users={member: role})
modal/cli/image.py CHANGED
@@ -168,11 +168,18 @@ async def history(
168
168
  env: Optional[str] = None,
169
169
  json: bool = False,
170
170
  ):
171
+ explicit_env = env # None when --env is not passed by the user
171
172
  env = ensure_env(env)
172
173
  try:
173
- name_tag = _parse_named_image_ref(name)
174
+ namespace_prefix, name_tag = _parse_named_image_ref(name)
174
175
  except InvalidError as exc:
175
176
  raise click.UsageError(str(exc)) from exc
177
+
178
+ if namespace_prefix:
179
+ if explicit_env is not None:
180
+ raise click.UsageError("Cannot specify '--env' when the image name contains a '/'.")
181
+ env = ""
182
+
176
183
  client = await _Client.from_env()
177
184
 
178
185
  first_page = await _fetch_history_page(client, env, name_tag, "")
modal/client.pyi CHANGED
@@ -35,7 +35,7 @@ class _Client:
35
35
  server_url: str,
36
36
  client_type: int,
37
37
  credentials: typing.Optional[tuple[str, str]],
38
- version: str = "1.5.2.dev19",
38
+ version: str = "1.5.2.dev20",
39
39
  ):
40
40
  """mdmd:hidden
41
41
  The Modal client object is not intended to be instantiated directly by users.
@@ -205,7 +205,7 @@ class Client:
205
205
  server_url: str,
206
206
  client_type: int,
207
207
  credentials: typing.Optional[tuple[str, str]],
208
- version: str = "1.5.2.dev19",
208
+ version: str = "1.5.2.dev20",
209
209
  ):
210
210
  """mdmd:hidden
211
211
  The Modal client object is not intended to be instantiated directly by users.
modal/environments.pyi CHANGED
@@ -112,9 +112,7 @@ class EnvironmentMembersManager:
112
112
  ...
113
113
 
114
114
  class __list_spec(typing_extensions.Protocol):
115
- def __call__(
116
- self, /
117
- ) -> dict[typing.Literal["users", "service_users"], dict[str, typing.Literal["viewer", "contributor"]]]:
115
+ def __call__(self, /) -> dict[typing.Literal["users", "service_users"], dict[str, str]]:
118
116
  """Return the members of a restricted Environment with their roles.
119
117
 
120
118
  **Examples:**
@@ -130,9 +128,7 @@ class EnvironmentMembersManager:
130
128
  """
131
129
  ...
132
130
 
133
- async def aio(
134
- self, /
135
- ) -> dict[typing.Literal["users", "service_users"], dict[str, typing.Literal["viewer", "contributor"]]]:
131
+ async def aio(self, /) -> dict[typing.Literal["users", "service_users"], dict[str, str]]:
136
132
  """Return the members of a restricted Environment with their roles.
137
133
 
138
134
  **Examples:**
@@ -155,10 +151,8 @@ class EnvironmentMembersManager:
155
151
  self,
156
152
  /,
157
153
  *,
158
- users: typing.Optional[collections.abc.Mapping[str, typing.Literal["viewer", "contributor"]]] = None,
159
- service_users: typing.Optional[
160
- collections.abc.Mapping[str, typing.Literal["viewer", "contributor"]]
161
- ] = None,
154
+ users: typing.Optional[collections.abc.Mapping[str, str]] = None,
155
+ service_users: typing.Optional[collections.abc.Mapping[str, str]] = None,
162
156
  ) -> None:
163
157
  """Add or modify roles for members of a restricted Environment.
164
158
 
@@ -181,10 +175,8 @@ class EnvironmentMembersManager:
181
175
  self,
182
176
  /,
183
177
  *,
184
- users: typing.Optional[collections.abc.Mapping[str, typing.Literal["viewer", "contributor"]]] = None,
185
- service_users: typing.Optional[
186
- collections.abc.Mapping[str, typing.Literal["viewer", "contributor"]]
187
- ] = None,
178
+ users: typing.Optional[collections.abc.Mapping[str, str]] = None,
179
+ service_users: typing.Optional[collections.abc.Mapping[str, str]] = None,
188
180
  ) -> None:
189
181
  """Add or modify roles for members of a restricted Environment.
190
182
 
modal/functions.pyi CHANGED
@@ -491,7 +491,7 @@ class Function(
491
491
 
492
492
  _call_generator: ___call_generator_spec
493
493
 
494
- class __remote_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
494
+ class __remote_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER]):
495
495
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER:
496
496
  """Calls the function remotely, executing it with the given arguments and returning the execution's result.
497
497
 
@@ -516,7 +516,7 @@ class Function(
516
516
  """
517
517
  ...
518
518
 
519
- remote: __remote_spec[modal._functions.P, modal._functions.ReturnType]
519
+ remote: __remote_spec[modal._functions.ReturnType, modal._functions.P]
520
520
 
521
521
  class __remote_gen_spec(typing_extensions.Protocol):
522
522
  def __call__(self, /, *args, **kwargs) -> typing.Generator[typing.Any, None, None]:
@@ -566,7 +566,7 @@ class Function(
566
566
  """
567
567
  ...
568
568
 
569
- class ___experimental_spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
569
+ class ___experimental_spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER]):
570
570
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
571
571
  """[Experimental] Calls the function with the given arguments, without waiting for the results.
572
572
 
@@ -599,7 +599,7 @@ class Function(
599
599
  """
600
600
  ...
601
601
 
602
- _experimental_spawn: ___experimental_spawn_spec[modal._functions.P, modal._functions.ReturnType]
602
+ _experimental_spawn: ___experimental_spawn_spec[modal._functions.ReturnType, modal._functions.P]
603
603
 
604
604
  class ___spawn_map_inner_spec(typing_extensions.Protocol[P_INNER]):
605
605
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> None: ...
@@ -607,7 +607,7 @@ class Function(
607
607
 
608
608
  _spawn_map_inner: ___spawn_map_inner_spec[modal._functions.P]
609
609
 
610
- class __spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
610
+ class __spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER]):
611
611
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
612
612
  """Calls the function with the given arguments, without waiting for the results.
613
613
 
@@ -640,7 +640,7 @@ class Function(
640
640
  """
641
641
  ...
642
642
 
643
- spawn: __spawn_spec[modal._functions.P, modal._functions.ReturnType]
643
+ spawn: __spawn_spec[modal._functions.ReturnType, modal._functions.P]
644
644
 
645
645
  def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]:
646
646
  """Return the inner Python object wrapped by this Modal Function.
modal/types.py CHANGED
@@ -5,7 +5,7 @@ import enum
5
5
  from dataclasses import FrozenInstanceError, dataclass
6
6
  from datetime import datetime, timezone
7
7
  from decimal import Decimal
8
- from typing import Any, Iterable, Literal, Optional
8
+ from typing import Any, Iterable, Optional
9
9
 
10
10
  from modal_proto import api_pb2
11
11
 
@@ -54,9 +54,6 @@ class FileWatchEventType(enum.Enum):
54
54
  Remove = "Remove"
55
55
 
56
56
 
57
- MemberRole = Literal["user", "manager", "owner"]
58
-
59
-
60
57
  @dataclass
61
58
  class DictInfo:
62
59
  """Information about a Dict object."""
@@ -206,7 +203,7 @@ class WorkspaceMemberInfo:
206
203
  name: str
207
204
  email: str
208
205
  user_id: str
209
- role: MemberRole
206
+ role: str
210
207
  joined_at: datetime
211
208
  last_active_at: Optional[datetime] # None if the member has never been active
212
209
 
modal/workspace.pyi CHANGED
@@ -72,7 +72,7 @@ class WorkspaceMemberInfo:
72
72
  name: str
73
73
  email: str
74
74
  user_id: str
75
- role: typing.Literal["user", "manager", "owner"]
75
+ role: str
76
76
  joined_at: datetime.datetime
77
77
  last_active_at: typing.Optional[datetime.datetime]
78
78
 
@@ -81,7 +81,7 @@ class WorkspaceMemberInfo:
81
81
  name: str,
82
82
  email: str,
83
83
  user_id: str,
84
- role: typing.Literal["user", "manager", "owner"],
84
+ role: str,
85
85
  joined_at: datetime.datetime,
86
86
  last_active_at: typing.Optional[datetime.datetime],
87
87
  ) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.5.2.dev19
3
+ Version: 1.5.2.dev20
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License-Expression: Apache-2.0
@@ -4,11 +4,11 @@ modal/_billing.py,sha256=VEa-YKFsuKmRfWW1SPiXGiY84RzTTRvo8ILi0V10R28,3483
4
4
  modal/_clustered_functions.py,sha256=zOWouWnRA4AbYz5kUbSHghFD9mifDHwfpntxOM_c5NA,2853
5
5
  modal/_clustered_functions.pyi,sha256=akbff8aXkp5aJapn72YMXPnzeYa6OFAfuakcy7Jx6wk,1146
6
6
  modal/_container_entrypoint.py,sha256=RoO9tnQVsUfzuqi0QzDkYKt-1YR3qlqEUok_jGhXw2s,22822
7
- modal/_environments.py,sha256=wJsblPxnWKACSp0UY20Z1evwxxeRFLIZSjb_FimOQcY,21106
7
+ modal/_environments.py,sha256=fpKvtG38NqRiT-4NkBqK1DCZn5LAqPO_vznFIbTCXEE,21016
8
8
  modal/_function_variants.py,sha256=ixkwW9naMMBzRB-92BZd5k3iVWtOoYukveT52hLDIbc,12549
9
9
  modal/_functions.py,sha256=V8xMSbctRLlxDZzP4jQZHut3RvqwGEIg8bfLaA43iS4,94042
10
10
  modal/_grpc_client.py,sha256=QL5btzOz6zZzTDcgSwFjI3PBy2gkaycyrlP7Jw-jkbY,6962
11
- modal/_image.py,sha256=nIiF1-vJtcmUejmSCl7sje0CwxhRbojUERt-6a2YRb4,127453
11
+ modal/_image.py,sha256=TW-0QiFa3Lo1w9khZcE8mgSHQgj-PJ0eChb8IkS2eqo,128738
12
12
  modal/_ipython.py,sha256=Bu9fc3hm3xt2O47qLe_d-Mu2jS81LwMsmXNJ1sawBA0,575
13
13
  modal/_load_context.py,sha256=wrDqD3KehhFepp0vBhyz_PoLWoRVD0gZHP8dlLHCTiw,4818
14
14
  modal/_location.py,sha256=joiX-0ZeutEUDTrrqLF1GHXCdVLF-rHzstocbMcd_-k,366
@@ -24,14 +24,14 @@ modal/_tunnel.py,sha256=iqx11Okxz052dpejoJYcofXEkSB6u1kPFw5DaGFjS2Q,7351
24
24
  modal/_tunnel.pyi,sha256=WVP0dkoN__mM73ZQ-r3nHKCXvYlRMmEWW8iw2xrSY6M,14698
25
25
  modal/_type_manager.py,sha256=DWjgmjYJuOagw2erin506UUbG2H5UzZCFEekS-7hmfA,9087
26
26
  modal/_watcher.py,sha256=f9kOdHga0TZ6Z6wL7h2O67sz3Oj8pDzjfoAYrNE2hik,3505
27
- modal/_workspace.py,sha256=S8pyy3zt_YvlSWayX_CbVMt6Xx2wrA-kmCB35GnJrHQ,14828
27
+ modal/_workspace.py,sha256=5Cyq8xDcBGMHe5dQlwZggrvBq1knISAi4-g8ZGSZ8yM,14836
28
28
  modal/app.py,sha256=dw3vJfE_jFnOB4UO585GnY44e8v21SzC8K9rClANjJU,70775
29
29
  modal/app.pyi,sha256=pQN8DZnm5rNEyumZ-sfkcGocjn1MSbA9aor7PHb_qQc,85115
30
30
  modal/billing.py,sha256=E1-P_P8bJFLp-bTaggYd4BaaViImPB5UdtXiY8VeAZQ,390
31
31
  modal/billing.pyi,sha256=4m7VLYNS8IiJ2I3CJx0awvrOM6BILWRVLfdeqtAYr8M,7189
32
32
  modal/call_graph.py,sha256=XGALIDn1bLchWo_goyX23bcPjzCZcfqKUo8INIfDapo,1775
33
33
  modal/client.py,sha256=OgjptM5UuU5LL85_-DFia-ehS8UCgMzVuzfNcxA1qPA,16136
34
- modal/client.pyi,sha256=wJd1N_ztN3Ak6XE2y1HW1m8j9GT_LQWMQDBfbUPJFH8,17854
34
+ modal/client.pyi,sha256=E81HcWminHrNZktN_zYp5EQee9tK738NCUDOdkUt9vM,17854
35
35
  modal/cloud_bucket_mount.py,sha256=03gECcV9l2Lnt9k23YrDOTGFW7ajfXMW5O8b1prhtwQ,6254
36
36
  modal/cloud_bucket_mount.pyi,sha256=lMOb44pbNE9kDVEqWfcmvpsnh1sdNNFzuKoVyZZ3d5M,8058
37
37
  modal/cls.py,sha256=A4EW0VDrYtQubZJIzGoxnP1wANWD_2PMpU1Q0n8oUhU,40834
@@ -42,13 +42,13 @@ modal/container_process.pyi,sha256=-8UstN3w-SbKbW2qbf1OSirqDQuLBBdvJE3ysJXTWHQ,4
42
42
  modal/dict.py,sha256=LILESg1hALZHwlW7uslbUyxc2mpgtNisEmk8xl-559Y,23953
43
43
  modal/dict.pyi,sha256=SPafrdRoStNJFt3YtO2H6PucXfbP-rDPB9zAWgY91sY,38253
44
44
  modal/environments.py,sha256=CMOYbsx3fg9M8-SSPOjOUGqay8r1zewWtbwp9XnEUNs,1486
45
- modal/environments.pyi,sha256=Cy7KUdQYsVcj0J5eZFUIN5LZaR16XbLcRQJpbzCwpVI,16154
45
+ modal/environments.pyi,sha256=_yBm5ReH8G40cFCa-8WDZXcgxslcyYWzX8EPY1ZZJ70,15834
46
46
  modal/exception.py,sha256=QWEf6f7PpKlPoy60D_7Qt8crVjLSOvBW4qDh4jIDNb8,11682
47
47
  modal/file_io.py,sha256=GYTa67mrmbTTTBsYQnb51VmwGIo0YY-1qQ3YBhagkmA,21795
48
48
  modal/file_io.pyi,sha256=3181-DS07flFWLf2BKjqCOiWIjieEOolf33wx6fBp5c,15377
49
49
  modal/file_pattern_matcher.py,sha256=6g_awxudMy_ontBvkznybyeNnwGMj297YrmIHCbREI0,8132
50
50
  modal/functions.py,sha256=EZRcHFfnoYbvawUJnAHF5nIvoo9GX2Djy7mUmOCXmXc,258
51
- modal/functions.pyi,sha256=IQwhfJNOT8A2IKczlyEeqZCV-XQUc83MCC6wV_Pg8rI,47593
51
+ modal/functions.pyi,sha256=H2sYb9zn7BJri3XnWzdLFoWBkFaISDZZ3bcRToUYjVA,47593
52
52
  modal/image.py,sha256=c0lUSAoU-Ip3g5DGZ0uhdCzoWSQWh1g0i-7Rxo-Sz-I,160
53
53
  modal/image.pyi,sha256=Whbfmda2YLAyzctLEF9uF4FQ5b1canwLojSksRJ4gx8,59716
54
54
  modal/io_streams.py,sha256=3fhhb7SDJ69pVUu9J3PiMLBePD9bpiIxPN05SCzf8FE,29118
@@ -90,11 +90,11 @@ modal/snapshot.pyi,sha256=tcQY-ylbonURRDe9Snr-bEohOIFiTWJyWwsdfnOUvIw,2636
90
90
  modal/stream_type.py,sha256=A6320qoAAWhEfwOCZfGtymQTu5AfLfJXXgARqooTPvY,417
91
91
  modal/token_flow.py,sha256=NVNkNDNlDL4XaSPOKJFzn8JhjmgbvUNFt__nqDTbXSg,6981
92
92
  modal/token_flow.pyi,sha256=5zdXJ5SLLHM4j6xSPuEvnpSeEJBbzE6NkSX-MSyE5wM,2282
93
- modal/types.py,sha256=sd4VA_bJXiwMlfLhuG0cyfWCtymL6J11Nr9-QkWovO8,7514
93
+ modal/types.py,sha256=M6mvZpiiC4U__yZoR32uQi1YKhuMwNs3O-uHOkoaX3M,7447
94
94
  modal/volume.py,sha256=uH__sL9Oac3n35FMJ-YzjEGlPvUnnmQnfeDJf5O-wA0,59939
95
95
  modal/volume.pyi,sha256=I08tYDvRaSNFbIz46UwuBkEJNkn7keruWq6YbVBBq-g,62595
96
96
  modal/workspace.py,sha256=_phlb1Bxie_KR1Y9atBzkB21Q_qmRztf1JLzQYdK0qk,988
97
- modal/workspace.pyi,sha256=XsJA3iu0tGgqnrta11wDXLl8RFSgMAtP4qhiZCNpvk4,19701
97
+ modal/workspace.pyi,sha256=07IEvKxDfTZai49Aqlj9BD6bqajX_BnfHvmGTM4Gznw,19623
98
98
  modal/_output/__init__.py,sha256=xtGN6SPv2zvByrJ32JPao0yJKpxyCIZ-2JMTScrisuQ,28
99
99
  modal/_output/manager.py,sha256=lL9fK9_cSJHdVIOcgzjCZEJ90fgNB7_mO7ih_4sk1hI,18097
100
100
  modal/_output/pty.py,sha256=EK9e5yNUpwhvbQ4-WWmUJ5elJQnOtCCfMhe5w1zgY5c,10143
@@ -163,14 +163,14 @@ modal/cli/bootstrap.py,sha256=0P7GMEuDdZ-sUm_-lml_8F2YYdmzhAItoDnN4s8T9zo,5269
163
163
  modal/cli/changelog.py,sha256=SaLVNRlDuBYS9V-ZC-zAfRjh-IO5A-4lXkDd6UIfmd0,5827
164
164
  modal/cli/cluster.py,sha256=9XE-xOYgjVtNUrHLCVYju8Sbe5XSPwIpQ4m7BjTYJLg,4374
165
165
  modal/cli/config.py,sha256=275o5OL07EJdFQkyOZjuNevTyw1DAnluk_kaiPGdIbo,1905
166
- modal/cli/container.py,sha256=GhSka7xsMx-9hkFMjs_C2EGFeW6Yh6oPbg-9UcjpJf8,12993
166
+ modal/cli/container.py,sha256=QAAjEX56SGWHyPXDMAFEQ0dvLlAaNl9ZK93d-KMhP4s,12914
167
167
  modal/cli/curl.py,sha256=w72srRFZ-moYX-Pliy7Uqx-dUs99Pd39Vi9HgyT548E,4537
168
168
  modal/cli/dashboard.py,sha256=YBHkRNY8fwZg472mn83ZpKWkaWbbiHj1Rg_0vMwOT7w,910
169
169
  modal/cli/dict.py,sha256=20KQa1kZu5THlneed-F_2sxcZriY0vYxcfe12XYIkLk,5152
170
170
  modal/cli/endpoint.py,sha256=6y5N8ThRvqM2JlSeMz5wCSEOXEchaDLyl3RTV_RpdV0,13509
171
171
  modal/cli/entry_point.py,sha256=Z5f-kE2OumaNsuCZU_P_E2pfLB1JGQTL-55MAp3r1ys,5074
172
- modal/cli/environment.py,sha256=xx6vT5X_M-p7GQWBTU_ExoXw3GBgszKdJra2wK-10ks,11817
173
- modal/cli/image.py,sha256=wPv2Aes8ZXoh4AP-mztIxLJ6186wJBMIgv_RP6MCZJg,6682
172
+ modal/cli/environment.py,sha256=Yfchg86a_hbQBlY_pKimuhYIYkSZF_SQWF5RKEyNn7M,11798
173
+ modal/cli/image.py,sha256=tj50yttndufoqMNW3EjQu48kci-VkgWWC8-IPgCdtqs,6946
174
174
  modal/cli/import_refs.py,sha256=s3OeBuFZJNh0S8EaaEiqUnAPETRTrWdOk-jkO7yRVr4,15506
175
175
  modal/cli/launch.py,sha256=1cPg9y7zIETMeg6_5HBPpX3hbL4uKe-yXf49bXx8tSY,4482
176
176
  modal/cli/logo.py,sha256=plv82syvPb8j3qrR1A_nojZwp823t3VEXaDlrx1jkt0,3221
@@ -194,7 +194,7 @@ modal/experimental/flash.py,sha256=GAJ1c-EGL8M3_loAkqr5gdUfySMHY3U_oc6RywfZ8-0,3
194
194
  modal/experimental/flash.pyi,sha256=lpTqJFZRMGWscw0xpYZVdBMnAYjj16asXE4_64A6itQ,17774
195
195
  modal/experimental/ipython.py,sha256=kJ6o9wkAY_MiSb7paewI7f1MJAeqdi8TX5pBdhr_mUI,2925
196
196
  modal/skills/modal/SKILL.md,sha256=WzLjYJ1utjc_ZOf6qZTPwB6wxxwRYB5PibdvIf_FLy0,5316
197
- modal-1.5.2.dev19.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
197
+ modal-1.5.2.dev20.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
198
198
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
199
199
  modal_docs/gen_cli_docs.py,sha256=9-b8vl2EsLWD9zJqpCK8IUi5h44Bjn3i3rSdedZV4bA,6415
200
200
  modal_docs/gen_cli_docs_main.py,sha256=UPGr7O1DYTIRLwfINe2rbdh89J3cPVTU1OWL-SjxnOQ,198
@@ -205,22 +205,22 @@ modal_docs/mdmd/mdmd.py,sha256=xsbLvGowhoaOyFJZ2qpVysx7zq51LeqQ5J6JB1yX2l8,23624
205
205
  modal_docs/mdmd/signatures.py,sha256=OASroKle763Kfumn4Ek4PABJXEGP56JMCTug44QoBx4,11327
206
206
  modal_docs/mdmd/types.py,sha256=MIh5VOnWvFd8T1aZT_vTB2OeLbPB5TASdOaX8jGvpQk,710
207
207
  modal_proto/__init__.py,sha256=tFdSv9eaHBvYcwhgq-XqIlYDNDw57clrvO91Fb-oUV4,130
208
- modal_proto/api_grpc.py,sha256=bmgG4YI5c2tZtoYbwbbN_NLGE7bXd0aTx5ZiYSILyh0,173301
209
- modal_proto/api_pb2.py,sha256=sOvKHS5t9rPRNHKelXniLXXmtNLgzG5lX79nj2RL1Co,471646
210
- modal_proto/api_pb2.pyi,sha256=8E85vX0W0GM1QdGX-INHFFwV3nsfdA13mF-X2nJSa34,655163
211
- modal_proto/api_pb2_grpc.py,sha256=C0gRjy7lENiBhhyOfXeWjrblc92ofeBUFkj5ZnfkhUY,372547
212
- modal_proto/api_pb2_grpc.pyi,sha256=PMFql3cFzc-znj_NI624BLvo7oM8b7TJebsXL5XDKFg,87053
213
- modal_proto/modal_api_grpc.py,sha256=bI3kwszQsDJmvPMX3Eu3erbeaAigF2xN2u-bAXsYFWs,27357
208
+ modal_proto/api_grpc.py,sha256=0_4173v7VTqdOZpvIhlK4hebCG87w1Ot-FYRJE64K2I,174201
209
+ modal_proto/api_pb2.py,sha256=XQ_wY28jYIcK3sBEFI7X0pVQ7bZw5G5FKZao_JmnEM4,473269
210
+ modal_proto/api_pb2.pyi,sha256=nrtDpznZP7Y_pswArccwFPZBwCtEgWA2pl7YbgwefjU,657062
211
+ modal_proto/api_pb2_grpc.py,sha256=VJLzB7qHXbcKsL3EJObu7eA0xmrx_N4Wkq1UjsB0wz8,374362
212
+ modal_proto/api_pb2_grpc.pyi,sha256=868ZDwORBUGDsey0b3dn9ii0T7HoGckVaex3KxObBss,87502
213
+ modal_proto/modal_api_grpc.py,sha256=nwXh8Pkl6bWG6cd6qDowbWdb8zEA9KF5mVRoVc3XTYg,27497
214
214
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
215
215
  modal_proto/task_command_router_grpc.py,sha256=w6FRgxm5wtCXtUL4m1A-57wwhhucxuz6AIlZBZjfaMM,20338
216
216
  modal_proto/task_command_router_pb2.py,sha256=LoHxWrzF0EV_gG6SKtAXZbxLUjI-AXzCIGkyuVzTBiE,39470
217
217
  modal_proto/task_command_router_pb2.pyi,sha256=mT-KTIZlLJ5Hd0mXSxyXw84pt_7tV__hd5TpHJ4OHh4,44044
218
218
  modal_proto/task_command_router_pb2_grpc.py,sha256=bX22HJ8qEqKl5YkP00-EPE83rZUdqmk0FDZjtpb21-U,40487
219
219
  modal_proto/task_command_router_pb2_grpc.pyi,sha256=DnkJ4U5hq6wp7XkLyE9xELNqSmNwA_vgawTiS_fVBK0,13241
220
- modal_version/__init__.py,sha256=1yMNE6wh03IigIjL-xL3457LD_nQJRC7sUpXQkUotZQ,121
220
+ modal_version/__init__.py,sha256=1I0saE5gq2Q4LeVjyPly6EZcp-HP1NWHhSNsJxkklgE,121
221
221
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
222
- modal-1.5.2.dev19.dist-info/METADATA,sha256=-VMrvFoo78bGkwctTVDHobAusZ94sXTM9dYpw6StIO0,2513
223
- modal-1.5.2.dev19.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
224
- modal-1.5.2.dev19.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
225
- modal-1.5.2.dev19.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
226
- modal-1.5.2.dev19.dist-info/RECORD,,
222
+ modal-1.5.2.dev20.dist-info/METADATA,sha256=NfISZZ_9MMseGGQGLaqG_b0-uA5jrcL0gcMttm-7pEo,2513
223
+ modal-1.5.2.dev20.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
224
+ modal-1.5.2.dev20.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
225
+ modal-1.5.2.dev20.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
226
+ modal-1.5.2.dev20.dist-info/RECORD,,
modal_proto/api_grpc.py CHANGED
@@ -483,6 +483,10 @@ class ModalClientBase(abc.ABC):
483
483
  async def MapStartOrContinue(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.MapStartOrContinueRequest, modal_proto.api_pb2.MapStartOrContinueResponse]') -> None:
484
484
  pass
485
485
 
486
+ @abc.abstractmethod
487
+ async def MountBatchedCheckExistence(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.MountBatchedCheckExistenceRequest, modal_proto.api_pb2.MountBatchedCheckExistenceResponse]') -> None:
488
+ pass
489
+
486
490
  @abc.abstractmethod
487
491
  async def MountGetOrCreate(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.MountGetOrCreateRequest, modal_proto.api_pb2.MountGetOrCreateResponse]') -> None:
488
492
  pass
@@ -1609,6 +1613,12 @@ class ModalClientBase(abc.ABC):
1609
1613
  modal_proto.api_pb2.MapStartOrContinueRequest,
1610
1614
  modal_proto.api_pb2.MapStartOrContinueResponse,
1611
1615
  ),
1616
+ '/modal.client.ModalClient/MountBatchedCheckExistence': grpclib.const.Handler(
1617
+ self.MountBatchedCheckExistence,
1618
+ grpclib.const.Cardinality.UNARY_UNARY,
1619
+ modal_proto.api_pb2.MountBatchedCheckExistenceRequest,
1620
+ modal_proto.api_pb2.MountBatchedCheckExistenceResponse,
1621
+ ),
1612
1622
  '/modal.client.ModalClient/MountGetOrCreate': grpclib.const.Handler(
1613
1623
  self.MountGetOrCreate,
1614
1624
  grpclib.const.Cardinality.UNARY_UNARY,
@@ -2953,6 +2963,12 @@ class ModalClientStub:
2953
2963
  modal_proto.api_pb2.MapStartOrContinueRequest,
2954
2964
  modal_proto.api_pb2.MapStartOrContinueResponse,
2955
2965
  )
2966
+ self.MountBatchedCheckExistence = grpclib.client.UnaryUnaryMethod(
2967
+ channel,
2968
+ '/modal.client.ModalClient/MountBatchedCheckExistence',
2969
+ modal_proto.api_pb2.MountBatchedCheckExistenceRequest,
2970
+ modal_proto.api_pb2.MountBatchedCheckExistenceResponse,
2971
+ )
2956
2972
  self.MountGetOrCreate = grpclib.client.UnaryUnaryMethod(
2957
2973
  channel,
2958
2974
  '/modal.client.ModalClient/MountGetOrCreate',