modAL 1.5.2.dev15__py3-none-any.whl → 1.5.2.dev16__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
@@ -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.dev15",
38
+ version: str = "1.5.2.dev16",
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.dev15",
208
+ version: str = "1.5.2.dev16",
209
209
  ):
210
210
  """mdmd:hidden
211
211
  The Modal client object is not intended to be instantiated directly by users.
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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.5.2.dev15
3
+ Version: 1.5.2.dev16
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License-Expression: Apache-2.0
@@ -31,7 +31,7 @@ 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=l2RV-vOKOpLGIT_h3jyV8s0rRpHnhoKoEIb41lvrSz8,17854
34
+ modal/client.pyi,sha256=WnUDmsey62YvU041RuE4kcwJwjJE9dsdWQTU94bfS4E,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
@@ -48,7 +48,7 @@ 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
@@ -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.dev15.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
197
+ modal-1.5.2.dev16.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=ttl6R1gTtFo-f35eYobQEEaG6dXekYzGaqbSdS-6YH8,171624
209
- modal_proto/api_pb2.py,sha256=yFxeADA3KRGDczR_ykltKfxJQdr4cHCZawGCbjtGLus,471800
210
- modal_proto/api_pb2.pyi,sha256=NXpAtbacydr9UbwOqlvWf9plEclfawWMUVMPZ7ThcTk,655530
211
- modal_proto/api_pb2_grpc.py,sha256=3CLIMPQ7-hPe6l1GxOs0IJpoP3TjtdoN5EArkR4WsgQ,369037
212
- modal_proto/api_pb2_grpc.pyi,sha256=LMUgIbLi38ZwZux_AFGWMjRin8auy0RiVSBU9ysmgTE,86233
213
- modal_proto/modal_api_grpc.py,sha256=934KM6shysR3NIIeziZKCKKkRsP9e_shMa-PEvMLfys,27083
208
+ modal_proto/api_grpc.py,sha256=1-Hr1qgO7oZcm6IhecOTICo-NZJ0LI_CXYcwh4_r8j4,172479
209
+ modal_proto/api_pb2.py,sha256=8QV4AqATYuNzKJ5T97jcSXWEpIfPsZLBwxUFrOt8DPI,472610
210
+ modal_proto/api_pb2.pyi,sha256=gSWtf4S2wtMcwmAyy-ZvRUIBrXPT6yCGUIggI5zCmss,655936
211
+ modal_proto/api_pb2_grpc.py,sha256=fcKza_g3Iwe3IuGnTOBd-Lmlnfc7t6CODSlafYfkXyA,370822
212
+ modal_proto/api_pb2_grpc.pyi,sha256=ayJJuCwCnKlgQJXerJNweIFpUPzD4mRHY-f-u0-9zBo,86648
213
+ modal_proto/modal_api_grpc.py,sha256=JB6BX8bpwoG9UQnXGaSJgf1Fxjz8fKUMjDS98PgV3hI,27229
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=8vZJz5fNkjq_HQ1WOpMKQU9oM_EaYg9xQlNjDBvMF9U,121
220
+ modal_version/__init__.py,sha256=Bux8TLe9tOpD11v8MHQQV2deOtVb-8nQx3IrXl0pS-Q,121
221
221
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
222
- modal-1.5.2.dev15.dist-info/METADATA,sha256=uEJQdUBU1Tbw-ZcXtotGoMYcwqUiYvwvgRngtuXoFE8,2513
223
- modal-1.5.2.dev15.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
224
- modal-1.5.2.dev15.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
225
- modal-1.5.2.dev15.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
226
- modal-1.5.2.dev15.dist-info/RECORD,,
222
+ modal-1.5.2.dev16.dist-info/METADATA,sha256=dFLom0WY5UzgJ4fGmsB6xI8DueGsFGK1-w_UoGayjaU,2513
223
+ modal-1.5.2.dev16.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
224
+ modal-1.5.2.dev16.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
225
+ modal-1.5.2.dev16.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
226
+ modal-1.5.2.dev16.dist-info/RECORD,,
modal_proto/api_grpc.py CHANGED
@@ -195,6 +195,10 @@ class ModalClientBase(abc.ABC):
195
195
  async def ContainerReloadVolumes(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ContainerReloadVolumesRequest, modal_proto.api_pb2.ContainerReloadVolumesResponse]') -> None:
196
196
  pass
197
197
 
198
+ @abc.abstractmethod
199
+ async def ContainerServerLifecycleReady(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ContainerServerLifecycleReadyRequest, google.protobuf.empty_pb2.Empty]') -> None:
200
+ pass
201
+
198
202
  @abc.abstractmethod
199
203
  async def ContainerStop(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ContainerStopRequest, modal_proto.api_pb2.ContainerStopResponse]') -> None:
200
204
  pass
@@ -1169,6 +1173,12 @@ class ModalClientBase(abc.ABC):
1169
1173
  modal_proto.api_pb2.ContainerReloadVolumesRequest,
1170
1174
  modal_proto.api_pb2.ContainerReloadVolumesResponse,
1171
1175
  ),
1176
+ '/modal.client.ModalClient/ContainerServerLifecycleReady': grpclib.const.Handler(
1177
+ self.ContainerServerLifecycleReady,
1178
+ grpclib.const.Cardinality.UNARY_UNARY,
1179
+ modal_proto.api_pb2.ContainerServerLifecycleReadyRequest,
1180
+ google.protobuf.empty_pb2.Empty,
1181
+ ),
1172
1182
  '/modal.client.ModalClient/ContainerStop': grpclib.const.Handler(
1173
1183
  self.ContainerStop,
1174
1184
  grpclib.const.Cardinality.UNARY_UNARY,
@@ -2501,6 +2511,12 @@ class ModalClientStub:
2501
2511
  modal_proto.api_pb2.ContainerReloadVolumesRequest,
2502
2512
  modal_proto.api_pb2.ContainerReloadVolumesResponse,
2503
2513
  )
2514
+ self.ContainerServerLifecycleReady = grpclib.client.UnaryUnaryMethod(
2515
+ channel,
2516
+ '/modal.client.ModalClient/ContainerServerLifecycleReady',
2517
+ modal_proto.api_pb2.ContainerServerLifecycleReadyRequest,
2518
+ google.protobuf.empty_pb2.Empty,
2519
+ )
2504
2520
  self.ContainerStop = grpclib.client.UnaryUnaryMethod(
2505
2521
  channel,
2506
2522
  '/modal.client.ModalClient/ContainerStop',