modal 1.1.5.dev4__py3-none-any.whl → 1.1.5.dev6__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 CHANGED
@@ -33,7 +33,7 @@ class _Client:
33
33
  server_url: str,
34
34
  client_type: int,
35
35
  credentials: typing.Optional[tuple[str, str]],
36
- version: str = "1.1.5.dev4",
36
+ version: str = "1.1.5.dev6",
37
37
  ):
38
38
  """mdmd:hidden
39
39
  The Modal client object is not intended to be instantiated directly by users.
@@ -164,7 +164,7 @@ class Client:
164
164
  server_url: str,
165
165
  client_type: int,
166
166
  credentials: typing.Optional[tuple[str, str]],
167
- version: str = "1.1.5.dev4",
167
+ version: str = "1.1.5.dev6",
168
168
  ):
169
169
  """mdmd:hidden
170
170
  The Modal client object is not intended to be instantiated directly by users.
modal/config.py CHANGED
@@ -66,8 +66,8 @@ Other possible configuration options are:
66
66
  * `traceback` (in the .toml file) / `MODAL_TRACEBACK` (as an env var).
67
67
  Defaults to False. Enables printing full tracebacks on unexpected CLI
68
68
  errors, which can be useful for debugging client issues.
69
- * `log_pattern` (in the .toml file) / MODAL_LOG_PATTERN` (as an env var).
70
- Defaults to "[modal-client] %(asctime)s %(message)s"
69
+ * `log_pattern` (in the .toml file) / `MODAL_LOG_PATTERN` (as an env var).
70
+ Defaults to `"[modal-client] %(asctime)s %(message)s"`
71
71
  The log formatting pattern that will be used by the modal client itself.
72
72
  See https://docs.python.org/3/library/logging.html#logrecord-attributes for available
73
73
  log attributes.
@@ -21,7 +21,7 @@ from ..client import _Client
21
21
  from ..config import logger
22
22
  from ..exception import InvalidError
23
23
 
24
- _MAX_FAILURES = 3
24
+ _MAX_FAILURES = 10
25
25
 
26
26
 
27
27
  class _FlashManager:
@@ -43,7 +43,7 @@ class _FlashManager:
43
43
  self.task_id = os.environ["MODAL_TASK_ID"]
44
44
 
45
45
  async def is_port_connection_healthy(
46
- self, process: Optional[subprocess.Popen], timeout: int = 5
46
+ self, process: Optional[subprocess.Popen], timeout: float = 0.5
47
47
  ) -> tuple[bool, Optional[Exception]]:
48
48
  import socket
49
49
 
@@ -53,7 +53,7 @@ class _FlashManager:
53
53
  try:
54
54
  if process is not None and process.poll() is not None:
55
55
  return False, Exception(f"Process {process.pid} exited with code {process.returncode}")
56
- with socket.create_connection(("localhost", self.port), timeout=1):
56
+ with socket.create_connection(("localhost", self.port), timeout=0.5):
57
57
  return True, None
58
58
  except (ConnectionRefusedError, OSError):
59
59
  await asyncio.sleep(0.1)
@@ -16,7 +16,7 @@ class _FlashManager:
16
16
  ...
17
17
 
18
18
  async def is_port_connection_healthy(
19
- self, process: typing.Optional[subprocess.Popen], timeout: int = 5
19
+ self, process: typing.Optional[subprocess.Popen], timeout: float = 0.5
20
20
  ) -> tuple[bool, typing.Optional[Exception]]: ...
21
21
  async def _start(self): ...
22
22
  async def _drain_container(self):
@@ -41,10 +41,10 @@ class FlashManager:
41
41
 
42
42
  class __is_port_connection_healthy_spec(typing_extensions.Protocol[SUPERSELF]):
43
43
  def __call__(
44
- self, /, process: typing.Optional[subprocess.Popen], timeout: int = 5
44
+ self, /, process: typing.Optional[subprocess.Popen], timeout: float = 0.5
45
45
  ) -> tuple[bool, typing.Optional[Exception]]: ...
46
46
  async def aio(
47
- self, /, process: typing.Optional[subprocess.Popen], timeout: int = 5
47
+ self, /, process: typing.Optional[subprocess.Popen], timeout: float = 0.5
48
48
  ) -> tuple[bool, typing.Optional[Exception]]: ...
49
49
 
50
50
  is_port_connection_healthy: __is_port_connection_healthy_spec[typing_extensions.Self]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.1.5.dev4
3
+ Version: 1.1.5.dev6
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -22,12 +22,12 @@ modal/app.py,sha256=F4baVULljFq0CwC_7U-EKNRNx7CYeWBKudjjYUuWc4U,48416
22
22
  modal/app.pyi,sha256=AbXJCBkyt2rI_-M3VbTBYb32at0P6iRZuoC87xY_JrQ,43591
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=kyAIVB3Ay-XKJizQ_1ufUFB__EagV0MLmHJpyYyJ7J0,18636
25
- modal/client.pyi,sha256=F3vfE-1XWCjduhEYS5_QaJVWHuzu35nj5ukX64BVoeU,15829
25
+ modal/client.pyi,sha256=3cXeANPWmMYR3FHZqibGNGy_h21AKbdtdcCTG4sVhjw,15829
26
26
  modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
27
27
  modal/cloud_bucket_mount.pyi,sha256=-qSfYAQvIoO_l2wsCCGTG5ZUwQieNKXdAO00yP1-LYU,7394
28
28
  modal/cls.py,sha256=pTEO7pHjlO7taMbIqs4oI9ZZgKDJpVKyGkO5ZT0w6tQ,40934
29
29
  modal/cls.pyi,sha256=C1eK-AkN-QaeXu0qmMZVgJmkb1tYAFS43iEG37takDs,28959
30
- modal/config.py,sha256=tW-SEGjVvAt3D_MNi3LhxXnFKIA9fjLd3UIgbW8uSJE,12121
30
+ modal/config.py,sha256=hpcfT03tdB-G0exZ4HjYDHwDtA8XcnliiyZzCcTbr8o,12124
31
31
  modal/container_process.py,sha256=Mutkl7sg_WR5zP4oJiWSC-3UdYRqp0zdKi1shZbi-bk,6996
32
32
  modal/container_process.pyi,sha256=9m-st3hCUlNN1GOTctfPPvIvoLtEl7FbuGWwif5-7YU,6037
33
33
  modal/dict.py,sha256=azL6WHOAR49OsqB33Rqyd1j9ljbbW7blHZDuRV8xPrA,22676
@@ -150,10 +150,10 @@ modal/cli/programs/run_jupyter.py,sha256=44Lpvqk2l3hH-uOkmAOzw60NEsfB5uaRDWDKVsh
150
150
  modal/cli/programs/run_marimo.py,sha256=HyZ2za0NYqg31-mGxFQxUIAJ3Q-jRaMocEwWwI5-cdw,2887
151
151
  modal/cli/programs/vscode.py,sha256=KbTAaIXyQBVCDXxXjmBHmKpgXkUw0q4R4KkJvUjCYgk,3380
152
152
  modal/experimental/__init__.py,sha256=fCqzo_f3vcY750vHtd7CtLs5dvdM_C0ZLLGb3zXuK9w,14913
153
- modal/experimental/flash.py,sha256=6KOdHVr3zjfgbe6nOou_mQ_0TKFgeG5INWitxyj6tn8,30049
154
- modal/experimental/flash.pyi,sha256=u_ZCXeZPBo778rThEdx9SJR6gkDdNqx9an8hwboQCEk,14258
153
+ modal/experimental/flash.py,sha256=DhX0HG-K55FSK_ym0MjXC9ObVflmamAXfFY-TnuN5SM,30056
154
+ modal/experimental/flash.pyi,sha256=EZiceVufvf7jsqKSQG-gd1hwqxzbEZxMkB1NtrK3AnE,14270
155
155
  modal/experimental/ipython.py,sha256=TrCfmol9LGsRZMeDoeMPx3Hv3BFqQhYnmD_iH0pqdhk,2904
156
- modal-1.1.5.dev4.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
156
+ modal-1.1.5.dev6.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
157
157
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
158
158
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
159
159
  modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
@@ -176,10 +176,10 @@ modal_proto/options_pb2.pyi,sha256=l7DBrbLO7q3Ir-XDkWsajm0d0TQqqrfuX54i4BMpdQg,1
176
176
  modal_proto/options_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
177
177
  modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0yJSI,247
178
178
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
179
- modal_version/__init__.py,sha256=rp7MGaJS8eOVHpGNr__NnfXYwj-KIbn7g2X0mI6KEGE,120
179
+ modal_version/__init__.py,sha256=Qq1SLn-RUOpjFk2zV541uja41VKG1HDK0H5-1_XHNc0,120
180
180
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
181
- modal-1.1.5.dev4.dist-info/METADATA,sha256=UivNw5cnN9znRf66NlHULHZPLhpTCfewLQmN_Vxn7Yw,2459
182
- modal-1.1.5.dev4.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
183
- modal-1.1.5.dev4.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
184
- modal-1.1.5.dev4.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
185
- modal-1.1.5.dev4.dist-info/RECORD,,
181
+ modal-1.1.5.dev6.dist-info/METADATA,sha256=es6e9pYbwxZaSvxcsH6qppC5ufa-5rsIJf_6Vz-ITLg,2459
182
+ modal-1.1.5.dev6.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
183
+ modal-1.1.5.dev6.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
184
+ modal-1.1.5.dev6.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
185
+ modal-1.1.5.dev6.dist-info/RECORD,,
modal_version/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.1.5.dev4"
4
+ __version__ = "1.1.5.dev6"