modAL 1.5.2.dev18__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,
@@ -163,7 +163,6 @@ RETRYABLE_GRPC_STATUS_CODES = [
163
163
  Status.UNKNOWN,
164
164
  ]
165
165
  SERVER_RETRY_WARNING_TIME_INTERVAL = 30.0
166
- # Initial per-attempt timeout for TCP/TLS handshake in connect_channel.
167
166
  DEFAULT_MAX_RETRIES = 3
168
167
 
169
168
 
@@ -308,11 +307,6 @@ def create_channel(
308
307
 
309
308
  # With 18 attempts, the max delays between calls is: 0.1 + 0.2 + 0.4 + 0.8 + 1.6 + 3.2 + 5*11 ~ 62
310
309
  @retry(n_attempts=18, base_delay=0.1, attempt_timeout=10.0, max_delay=5.0, total_timeout=63.0)
311
- async def connect_channel(channel: grpclib.client.Channel):
312
- """Connect to socket and raise exceptions when there is a connection issue."""
313
- await channel.__connect__()
314
-
315
-
316
310
  async def create_channel_with_fallbacks(
317
311
  server_url: str,
318
312
  metadata: dict[str, str] = {},
@@ -323,21 +317,35 @@ async def create_channel_with_fallbacks(
323
317
  `server_url` may be a single URL or a comma-separated list of URLs. The connection attempts
324
318
  are raced against each other and the first one to connect wins, which lets the client fail
325
319
  over to a secondary endpoint when the primary is unreachable (e.g. a DNS outage on the
326
- primary's domain). Attempts are staggered: the candidate at index `i` waits `i * stagger_delay`
327
- seconds before starting, so earlier URLs (e.g. the primary) get a head start and are preferred
328
- when reachable. Losing attempts are cancelled and their channels closed.
320
+ primary's domain).
321
+
322
+ Attempts are staggered so earlier URLs (e.g. the primary) get a head start and are preferred
323
+ when reachable: the candidate at index `i` waits up to `i * stagger_delay` seconds before
324
+ starting. That wait is cut short as soon as the previous candidate *fails*, so a fast failure
325
+ falls over to the next URL immediately instead of waiting out the full stagger. Losing attempts
326
+ are cancelled and their channels closed.
329
327
  """
330
328
  urls = [url.strip() for url in server_url.split(",")]
331
329
 
330
+ # Set when a candidate's connection attempt fails, letting the next candidate start immediately
331
+ # instead of waiting out its stagger delay.
332
+ failed = [asyncio.Event() for _ in urls]
333
+
332
334
  async def connect(index: int, url: str) -> grpclib.client.Channel:
333
- # Stagger the start so earlier URLs are preferred; once started, all attempts race.
334
- await asyncio.sleep(index * stagger_delay)
335
+ if index > 0:
336
+ # Stagger the start so earlier URLs are preferred, but start early if the previous
337
+ # candidate has already failed.
338
+ try:
339
+ await asyncio.wait_for(failed[index - 1].wait(), timeout=index * stagger_delay)
340
+ except asyncio.TimeoutError:
341
+ pass
335
342
  channel = create_channel(url, metadata)
336
343
  try:
337
- await connect_channel(channel)
344
+ await channel.__connect__()
338
345
  except BaseException:
339
346
  # Close the channel of a losing/cancelled attempt so its socket doesn't leak.
340
347
  channel.close()
348
+ failed[index].set()
341
349
  raise
342
350
  return channel
343
351
 
@@ -29,7 +29,13 @@ def is_valid_object_name(name: str) -> bool:
29
29
 
30
30
  def is_valid_environment_name(name: str) -> bool:
31
31
  # first char is alnum, the rest allows other chars
32
- return len(name) <= 64 and re.match(r"^[a-zA-Z0-9][a-zA-Z0-9-_.]+$", name) is not None
32
+ # The "en-" prefix is reserved for environment IDs, so that references
33
+ # to environments can be resolved by either name or ID unambiguously.
34
+ return (
35
+ len(name) <= 64
36
+ and re.match(r"^[a-zA-Z0-9][a-zA-Z0-9-_.]+$", name) is not None
37
+ and not name.lower().startswith("en-")
38
+ )
33
39
 
34
40
 
35
41
  def is_valid_tag(tag: str, max_length: int = 50) -> bool:
@@ -66,7 +72,7 @@ def check_environment_name(name: str) -> None:
66
72
  f"Invalid Environment name: '{name}'."
67
73
  "\n\nEnvironment names can only start with alphanumeric characters,"
68
74
  " may contain only alphanumeric characters, dashes, periods, and underscores,"
69
- " and must be shorter than 64 characters."
75
+ " must be shorter than 64 characters, and cannot start with 'en-'."
70
76
  )
71
77
  if not is_valid_environment_name(name):
72
78
  raise InvalidError(message)
@@ -32,8 +32,8 @@ from .grpc_utils import RETRYABLE_GRPC_STATUS_CODES
32
32
  async def _connect_channel(channel: grpclib.client.Channel):
33
33
  """Connect to the command router channel.
34
34
 
35
- Uses a longer retry budget than grpc_utils.connect_channel. In rare cases the sandbox
36
- may take a long time to start on the worker after scheduling.
35
+ Uses a longer retry budget than grpc_utils.create_channel_with_fallbacks. In rare cases the
36
+ sandbox may take a long time to start on the worker after scheduling.
37
37
 
38
38
  Retries with exponential backoff (1, 2, 4, 8, 10, 10, ...) capped at 10s per delay.
39
39
  Total sleep between attempts: 1 + 2 + 4 + 8 + 10*29 = 305s (~5 min).
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/app.py CHANGED
@@ -1266,9 +1266,6 @@ class _App:
1266
1266
 
1267
1267
  return wrapper
1268
1268
 
1269
- def _experimental_server(self, **kwargs):
1270
- return self.server(**kwargs)
1271
-
1272
1269
  def server(
1273
1270
  self,
1274
1271
  _warn_parentheses_missing=None, # mdmd:line-hidden
modal/app.pyi CHANGED
@@ -728,7 +728,6 @@ class _App:
728
728
  """
729
729
  ...
730
730
 
731
- def _experimental_server(self, **kwargs): ...
732
731
  def server(
733
732
  self,
734
733
  _warn_parentheses_missing=None,
@@ -1733,7 +1732,6 @@ class App:
1733
1732
  """
1734
1733
  ...
1735
1734
 
1736
- def _experimental_server(self, **kwargs): ...
1737
1735
  def server(
1738
1736
  self,
1739
1737
  _warn_parentheses_missing=None,
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.dev18",
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.dev18",
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/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.dev18
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
28
- modal/app.py,sha256=Gl2xHi0q-fA9enEPQ7ELfaVqU2Cqkt7cwcMan4gSStc,70859
29
- modal/app.pyi,sha256=SnvZqL3vtnZ9CVKv4_cbo88awReO-Y_42ukziXjZzEg,85215
27
+ modal/_workspace.py,sha256=5Cyq8xDcBGMHe5dQlwZggrvBq1knISAi4-g8ZGSZ8yM,14836
28
+ modal/app.py,sha256=dw3vJfE_jFnOB4UO585GnY44e8v21SzC8K9rClANjJU,70775
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=DbGt2pgQ0IGuEZc5U8OR-cUJ0J3aRwyXgF80hzvY4xg,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,7 +42,7 @@ 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
@@ -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
@@ -125,20 +125,20 @@ modal/_utils/docker_utils.py,sha256=k8fkYT6G-X_B3iamjxiSpwSE-k58xGVHtsk2_gR7i2Q,
125
125
  modal/_utils/function_utils.py,sha256=2aTsjOt-GWm7S1LprAUs-thzxzFSsjtoZdWsgWXFfag,25303
126
126
  modal/_utils/git_utils.py,sha256=Lat_l4O4hwOYgylEtWup3hyqWT8D7JoCIjCflXcX8BE,3148
127
127
  modal/_utils/grpc_testing.py,sha256=udyK_wRXX_yc9eLt8mIZZqx12XlaiUqORxaGNvfI_MM,8697
128
- modal/_utils/grpc_utils.py,sha256=VdAhxO4-te1XVM2UDHK3mCdzFbzrDMQUnItbiB4iUr4,22802
128
+ modal/_utils/grpc_utils.py,sha256=bSCBlyd7Y-kmjwlFAxfOPoCprSoO2BW-zQvHlMtslqw,23151
129
129
  modal/_utils/hash_utils.py,sha256=WHuMRwmB4fnaM-qmyWXR87C2CinvLnmRoygSzsTEunA,3008
130
130
  modal/_utils/http_utils.py,sha256=TO9nnKR0Cc-iWCmkou56wJh9MHgNZwQMosK8WK-GD5Y,3133
131
131
  modal/_utils/jwt_utils.py,sha256=KUoqGHMM4ewDyTsTKXPm1wrMu8Z6lp0l8VILHufm484,1354
132
132
  modal/_utils/logger.py,sha256=NgbMKFT9chYYt_TU01DdIior5ByYr2gZtrWIk1SFRLc,1782
133
133
  modal/_utils/mount_utils.py,sha256=-KkLgkm30_MlsDKmp1NIEqfPhzt2ybSvZUsp1-IBqrU,4973
134
- modal/_utils/name_utils.py,sha256=Im2A4zeberAAfTxPRSx46ILE_pIWIE1f-GxIYulFOSE,2517
134
+ modal/_utils/name_utils.py,sha256=k3BHNWjO1-zcUsUV_hF6U1s9yz0EhT4y20bJwiTb4OA,2762
135
135
  modal/_utils/package_utils.py,sha256=jYE7WFVzYWIfO0ZJhno_BYHb6Skp48uupOiw1a3yWzw,2056
136
136
  modal/_utils/pattern_utils.py,sha256=HOAxuYA1HpKxRHLT1AwqNTZwwNeNrlBCaCXWVcOdyCE,6701
137
137
  modal/_utils/proxy_support.py,sha256=hLA_XojYxzPysOiLqyUbB-SgMLmn_X8WtXTk92xh7g4,3162
138
138
  modal/_utils/rand_pb_testing.py,sha256=kwAKIros_g6XPXluiJAktQ79YPkD9SGopKGl83GQ1l0,4361
139
139
  modal/_utils/sandbox_fs_utils.py,sha256=rsfo1uDbVSoiY21XERDzsmp-DALcNmlPfJ6jn_2p5T0,15680
140
140
  modal/_utils/shell_utils.py,sha256=_2yHrlx4Crx5JWQXECLPQ51kclu8H-U3N7jOkBN7q5U,3390
141
- modal/_utils/task_command_router_client.py,sha256=IrBM7jMxXu-ia6wcv6Wf1PoXyq9YaIGLdezgDkD5YgE,39382
141
+ modal/_utils/task_command_router_client.py,sha256=3AihZh5qi0v3BRiGq4IjsvH06RNHH7g0qvXP_MFX_8o,39396
142
142
  modal/_utils/time_utils.py,sha256=3T2RkXRpOFwBiQ5fTZCPkObaeemLXNWW9UyDhG8qsv4,9042
143
143
  modal/_vendor/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
144
144
  modal/_vendor/a2wsgi_wsgi.py,sha256=RVLIYVJA8a8o96QxEXYT5tuog2zev2S24XOuAVTXZAs,21872
@@ -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.dev18.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=aZp3bJFGAqKbOwaCvV5dwLzL8dL4rPZ_k_-t8dnxbIg,472775
210
- modal_proto/api_pb2.pyi,sha256=swQg_YLi6lfws9lIaW5javC6p_oqsVmz0kNjwgRO5ag,656075
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=0V600Tfz-cNv09vNq9_Lhqpzf_Zlf8FDCXW9iUv4LQs,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.dev18.dist-info/METADATA,sha256=9jKbvwj0ilgDX9_1anhTxemQf_AWBteJH7jpe72Ptw4,2513
223
- modal-1.5.2.dev18.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
224
- modal-1.5.2.dev18.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
225
- modal-1.5.2.dev18.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
226
- modal-1.5.2.dev18.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,,