modAL 1.5.4.dev13__py3-none-any.whl → 1.5.4.dev14__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
@@ -37,7 +37,7 @@ class _Client:
37
37
  server_url: str,
38
38
  client_type: int,
39
39
  credentials: typing.Optional[tuple[str, str]],
40
- version: str = "1.5.4.dev13",
40
+ version: str = "1.5.4.dev14",
41
41
  ):
42
42
  """mdmd:hidden
43
43
  The Modal client object is not intended to be instantiated directly by users.
@@ -207,7 +207,7 @@ class Client:
207
207
  server_url: str,
208
208
  client_type: int,
209
209
  credentials: typing.Optional[tuple[str, str]],
210
- version: str = "1.5.4.dev13",
210
+ version: str = "1.5.4.dev14",
211
211
  ):
212
212
  """mdmd:hidden
213
213
  The Modal client object is not intended to be instantiated directly by users.
modal/functions.pyi CHANGED
@@ -546,7 +546,7 @@ class Function(
546
546
 
547
547
  _call_generator: ___call_generator_spec
548
548
 
549
- class __remote_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
549
+ class __remote_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER]):
550
550
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER:
551
551
  """Calls the function remotely, executing it with the given arguments and returning the execution's result.
552
552
 
@@ -571,7 +571,7 @@ class Function(
571
571
  """
572
572
  ...
573
573
 
574
- remote: __remote_spec[modal._functions.P, modal._functions.ReturnType]
574
+ remote: __remote_spec[modal._functions.ReturnType, modal._functions.P]
575
575
 
576
576
  class __remote_gen_spec(typing_extensions.Protocol):
577
577
  def __call__(self, /, *args, **kwargs) -> typing.Generator[typing.Any, None, None]:
@@ -621,7 +621,7 @@ class Function(
621
621
  """
622
622
  ...
623
623
 
624
- class ___experimental_spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
624
+ class ___experimental_spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER]):
625
625
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
626
626
  """[Experimental] Calls the function with the given arguments, without waiting for the results.
627
627
 
@@ -654,7 +654,7 @@ class Function(
654
654
  """
655
655
  ...
656
656
 
657
- _experimental_spawn: ___experimental_spawn_spec[modal._functions.P, modal._functions.ReturnType]
657
+ _experimental_spawn: ___experimental_spawn_spec[modal._functions.ReturnType, modal._functions.P]
658
658
 
659
659
  class ___spawn_map_inner_spec(typing_extensions.Protocol[P_INNER]):
660
660
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> None: ...
@@ -662,7 +662,7 @@ class Function(
662
662
 
663
663
  _spawn_map_inner: ___spawn_map_inner_spec[modal._functions.P]
664
664
 
665
- class __spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
665
+ class __spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER]):
666
666
  def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
667
667
  """Calls the function with the given arguments, without waiting for the results.
668
668
 
@@ -695,7 +695,7 @@ class Function(
695
695
  """
696
696
  ...
697
697
 
698
- spawn: __spawn_spec[modal._functions.P, modal._functions.ReturnType]
698
+ spawn: __spawn_spec[modal._functions.ReturnType, modal._functions.P]
699
699
 
700
700
  def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]:
701
701
  """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.4.dev13
3
+ Version: 1.5.4.dev14
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License-Expression: Apache-2.0
@@ -34,7 +34,7 @@ modal/billing.py,sha256=E1-P_P8bJFLp-bTaggYd4BaaViImPB5UdtXiY8VeAZQ,390
34
34
  modal/billing.pyi,sha256=4m7VLYNS8IiJ2I3CJx0awvrOM6BILWRVLfdeqtAYr8M,7189
35
35
  modal/call_graph.py,sha256=XGALIDn1bLchWo_goyX23bcPjzCZcfqKUo8INIfDapo,1775
36
36
  modal/client.py,sha256=NjpAL0fIKabEaN0uXJPEoI1OTjFtXSp4tSck-M-WF3k,16360
37
- modal/client.pyi,sha256=WgAx6rPxaZL9JrEju_WgHaNt6hw70ki64tJMBdLAKL0,17999
37
+ modal/client.pyi,sha256=UV6bDlfEVZnDCK4I91gJL_ehWSpe7yEAHQODm8KSKtM,17999
38
38
  modal/cloud_bucket_mount.py,sha256=NrdNV9r9aL3QFrlt-Dhtd7_K3f8v1igrHf2FRwgJ1CI,6827
39
39
  modal/cloud_bucket_mount.pyi,sha256=0E8d53pMh2KsFa-rMh_i6LxlzW4cMV8drVmmkPHSqZk,8149
40
40
  modal/cls.py,sha256=TxRxHdY4L6AZ6I16DNPgDryAkGtlFadD-Mm0ovtfN58,41206
@@ -51,7 +51,7 @@ modal/file_io.py,sha256=GYTa67mrmbTTTBsYQnb51VmwGIo0YY-1qQ3YBhagkmA,21795
51
51
  modal/file_io.pyi,sha256=3181-DS07flFWLf2BKjqCOiWIjieEOolf33wx6fBp5c,15377
52
52
  modal/file_pattern_matcher.py,sha256=CpaNNj7oBlOSewX-AAUZCF8KDxH0_DmgwzfpVGbPYJ4,8138
53
53
  modal/functions.py,sha256=EZRcHFfnoYbvawUJnAHF5nIvoo9GX2Djy7mUmOCXmXc,258
54
- modal/functions.pyi,sha256=d_Qsid1-LZQhNmhuDGFT1xqnadxuG95gb-IFmURPh50,50868
54
+ modal/functions.pyi,sha256=t-J2aYsREGFc2MJIckiEOK3S_n4rYJ_Vh1H6qSGUoOQ,50868
55
55
  modal/image.py,sha256=c0lUSAoU-Ip3g5DGZ0uhdCzoWSQWh1g0i-7Rxo-Sz-I,160
56
56
  modal/image.pyi,sha256=o-tdFnreyhib65kDz9OH9k_b9sJHttNj4p_kr8zcWAk,59866
57
57
  modal/io_streams.py,sha256=3fhhb7SDJ69pVUu9J3PiMLBePD9bpiIxPN05SCzf8FE,29118
@@ -198,7 +198,7 @@ modal/experimental/flash.py,sha256=GAJ1c-EGL8M3_loAkqr5gdUfySMHY3U_oc6RywfZ8-0,3
198
198
  modal/experimental/flash.pyi,sha256=lpTqJFZRMGWscw0xpYZVdBMnAYjj16asXE4_64A6itQ,17774
199
199
  modal/experimental/ipython.py,sha256=kJ6o9wkAY_MiSb7paewI7f1MJAeqdi8TX5pBdhr_mUI,2925
200
200
  modal/skills/modal/SKILL.md,sha256=WzLjYJ1utjc_ZOf6qZTPwB6wxxwRYB5PibdvIf_FLy0,5316
201
- modal-1.5.4.dev13.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
201
+ modal-1.5.4.dev14.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
202
202
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
203
203
  modal_docs/gen_cli_docs.py,sha256=9-b8vl2EsLWD9zJqpCK8IUi5h44Bjn3i3rSdedZV4bA,6415
204
204
  modal_docs/gen_cli_docs_main.py,sha256=UPGr7O1DYTIRLwfINe2rbdh89J3cPVTU1OWL-SjxnOQ,198
@@ -210,22 +210,22 @@ modal_docs/mdmd/mdmd.py,sha256=J49V8ak-hnF7SyBJDc-p3a_aEZpaAImkz2Rf74mDvA4,25070
210
210
  modal_docs/mdmd/signatures.py,sha256=OASroKle763Kfumn4Ek4PABJXEGP56JMCTug44QoBx4,11327
211
211
  modal_docs/mdmd/types.py,sha256=tv7fvziPr-MeDzOp4e2pK5h3d1DXTUOO74rPqDoBn6g,736
212
212
  modal_proto/__init__.py,sha256=Hkou4lcD5tArEkW_9v9KZhLY7fl0fA9-O28beKU55pg,396
213
- modal_proto/api_grpc.py,sha256=J8CYJap2EuMDb1ct4beDGBxfN5d6uyJHTbdVySIZVrE,183310
214
- modal_proto/api_pb2.py,sha256=VHfhV50ykbjjJLZgAYMjYy-ptYhQKYGUbDGtsvtGceY,500624
215
- modal_proto/api_pb2.pyi,sha256=1DadwgfOiNT4sWlDCFS0TkXmiDozGXZOQYWPiJ4Ua6M,692701
216
- modal_proto/api_pb2_grpc.py,sha256=nTPxiGWnzwoI5CDwOzQBs-YNm2MbbR4hY-0k-1O4q54,393438
217
- modal_proto/api_pb2_grpc.pyi,sha256=KCoLCt-wE0UnUBHUh_43SQ_avt4adookSElNBdiTPAg,92264
218
- modal_proto/modal_api_grpc.py,sha256=brzTrJA6gH0678l8r4BF7Uj6XNcw-4PDorV0AYfs4QA,28921
213
+ modal_proto/api_grpc.py,sha256=lvTskOBdLYX3Yx4e1Jk0lBaVWYu2y5mnlnsjNibhYZY,184122
214
+ modal_proto/api_pb2.py,sha256=2ztxv5jdA4Gjnkhl023s6d4YoB-boFotLgegctec6o8,502767
215
+ modal_proto/api_pb2.pyi,sha256=nQGyfNRj-ENmN1NPLV6uU6Vn7KYq9RT90NHfU467AQU,695144
216
+ modal_proto/api_pb2_grpc.py,sha256=4aS6cYkxKo7aUv33Smrf5xgKrgtht0SoN1PzABThS0g,395149
217
+ modal_proto/api_pb2_grpc.pyi,sha256=jdaQTqjHhRGw-twSqPv6A97PEzmmblYkSuEWg3jdDo0,92665
218
+ modal_proto/modal_api_grpc.py,sha256=t0y6IZq8ec9zzIhFpnKNPgYBPrxD0uD-VANzx5EtDgM,29045
219
219
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
220
220
  modal_proto/task_command_router_grpc.py,sha256=UurJEgLeAc2CCdEsCOFE9DgIQy1ra6bXHXJLNBK81Mg,21284
221
221
  modal_proto/task_command_router_pb2.py,sha256=4cyDT_uPGi54blsO663bnSzUe7aBFqi9F4iM8N1JPaU,41130
222
222
  modal_proto/task_command_router_pb2.pyi,sha256=5xfhnwtTDTmJo1Nv0tPBJrYzb0aeilY2Lm92wWT_6yw,46211
223
223
  modal_proto/task_command_router_pb2_grpc.py,sha256=zuFkJgKcswB2ftjnyEgs70dp61VMA7gK0h0uzR3gYFw,42563
224
224
  modal_proto/task_command_router_pb2_grpc.pyi,sha256=UjAJFqz9DpOFXP04fVm5lB2eAyTtjOg3oKjfWei8yLU,14262
225
- modal_version/__init__.py,sha256=lim_LMAaIkTSk5B65hXzXWYrBYQ_4IHQbyiXKunn6JU,121
225
+ modal_version/__init__.py,sha256=14mkD-EaTGs4wiqd1Z-xMRRK3t1sP_GqYZVONCm1QK4,121
226
226
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
227
- modal-1.5.4.dev13.dist-info/METADATA,sha256=7KulVNu1g7-w8a7PdLrizDS_YNpqR167gI4Kecu0Pgs,2513
228
- modal-1.5.4.dev13.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
229
- modal-1.5.4.dev13.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
230
- modal-1.5.4.dev13.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
231
- modal-1.5.4.dev13.dist-info/RECORD,,
227
+ modal-1.5.4.dev14.dist-info/METADATA,sha256=KZqQXtzt-jx5BDfA8yYfwHegWrJ1Qc1z7q-XYWHqy1g,2513
228
+ modal-1.5.4.dev14.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
229
+ modal-1.5.4.dev14.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
230
+ modal-1.5.4.dev14.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
231
+ modal-1.5.4.dev14.dist-info/RECORD,,
modal_proto/api_grpc.py CHANGED
@@ -455,6 +455,10 @@ class ModalClientBase(abc.ABC):
455
455
  async def FunctionUpdateSchedulingParams(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest, modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse]') -> None:
456
456
  pass
457
457
 
458
+ @abc.abstractmethod
459
+ async def ImageBuildChainGet(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ImageBuildChainGetRequest, modal_proto.api_pb2.ImageBuildChainGetResponse]') -> None:
460
+ pass
461
+
458
462
  @abc.abstractmethod
459
463
  async def ImageDelete(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ImageDeleteRequest, google.protobuf.empty_pb2.Empty]') -> None:
460
464
  pass
@@ -1615,6 +1619,12 @@ class ModalClientBase(abc.ABC):
1615
1619
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
1616
1620
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
1617
1621
  ),
1622
+ '/modal.client.ModalClient/ImageBuildChainGet': grpclib.const.Handler(
1623
+ self.ImageBuildChainGet,
1624
+ grpclib.const.Cardinality.UNARY_UNARY,
1625
+ modal_proto.api_pb2.ImageBuildChainGetRequest,
1626
+ modal_proto.api_pb2.ImageBuildChainGetResponse,
1627
+ ),
1618
1628
  '/modal.client.ModalClient/ImageDelete': grpclib.const.Handler(
1619
1629
  self.ImageDelete,
1620
1630
  grpclib.const.Cardinality.UNARY_UNARY,
@@ -3031,6 +3041,12 @@ class ModalClientStub:
3031
3041
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
3032
3042
  modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
3033
3043
  )
3044
+ self.ImageBuildChainGet = grpclib.client.UnaryUnaryMethod(
3045
+ channel,
3046
+ '/modal.client.ModalClient/ImageBuildChainGet',
3047
+ modal_proto.api_pb2.ImageBuildChainGetRequest,
3048
+ modal_proto.api_pb2.ImageBuildChainGetResponse,
3049
+ )
3034
3050
  self.ImageDelete = grpclib.client.UnaryUnaryMethod(
3035
3051
  channel,
3036
3052
  '/modal.client.ModalClient/ImageDelete',