modAL 1.5.2.dev12__py3-none-any.whl → 1.5.2.dev13__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.dev12",
38
+ version: str = "1.5.2.dev13",
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.dev12",
208
+ version: str = "1.5.2.dev13",
209
209
  ):
210
210
  """mdmd:hidden
211
211
  The Modal client object is not intended to be instantiated directly by users.
modal/cls.py CHANGED
@@ -83,10 +83,8 @@ def _bind_instance_method(cls: "_Cls", service_function: _Function, method_name:
83
83
  def hydrate_from_instance_service_function(new_function: _Function):
84
84
  assert service_function.is_hydrated
85
85
  assert cls.is_hydrated
86
- # After 0.67 is minimum required version, we should be able to use method metadata directly
87
- # from the service_function instead (see _Cls._hydrate_metadata), but for now we use the Cls
88
- # since it can take the data from the cls metadata OR function metadata depending on source
89
- method_metadata = cls._method_metadata[method_name]
86
+
87
+ method_metadata = service_function._method_handle_metadata[method_name]
90
88
  new_function._hydrate(service_function.object_id, service_function.client, method_metadata)
91
89
 
92
90
  async def _load(fun: "_Function", resolver: Resolver, load_context: LoadContext, existing_object_id: str | None):
@@ -734,6 +732,7 @@ More information on class parameterization can be found here: https://modal.com/
734
732
  timeout: int | None = None,
735
733
  region: str | Sequence[str] | None = None,
736
734
  cloud: str | None = None,
735
+ routing_region: str | None = None,
737
736
  ) -> "_Cls":
738
737
  """Override the static Cls configuration with invocation-specific values.
739
738
 
@@ -759,6 +758,7 @@ More information on class parameterization can be found here: https://modal.com/
759
758
  timeout: Function timeout in seconds.
760
759
  region: One region or a list of regions to schedule on.
761
760
  cloud: Cloud provider (for example ``aws``, ``gcp``, ``oci``, or ``auto``).
761
+ routing_region: Region that inputs and outputs are routed through for this Cls.
762
762
 
763
763
  Returns:
764
764
  A new ``Cls`` with the merged options.
@@ -793,6 +793,7 @@ More information on class parameterization can be found here: https://modal.com/
793
793
  timeout=timeout,
794
794
  region=region,
795
795
  cloud=cloud,
796
+ routing_region=routing_region,
796
797
  )
797
798
 
798
799
  return self._apply_dynamic_config(options, "with_options")
modal/cls.pyi CHANGED
@@ -342,6 +342,7 @@ class _Cls(modal._object._Object):
342
342
  timeout: typing.Optional[int] = None,
343
343
  region: typing.Union[str, collections.abc.Sequence[str], None] = None,
344
344
  cloud: typing.Optional[str] = None,
345
+ routing_region: typing.Optional[str] = None,
345
346
  ) -> _Cls:
346
347
  """Override the static Cls configuration with invocation-specific values.
347
348
 
@@ -367,6 +368,7 @@ class _Cls(modal._object._Object):
367
368
  timeout: Function timeout in seconds.
368
369
  region: One region or a list of regions to schedule on.
369
370
  cloud: Cloud provider (for example ``aws``, ``gcp``, ``oci``, or ``auto``).
371
+ routing_region: Region that inputs and outputs are routed through for this Cls.
370
372
 
371
373
  Returns:
372
374
  A new ``Cls`` with the merged options.
@@ -556,6 +558,7 @@ class Cls(modal.object.Object):
556
558
  timeout: typing.Optional[int] = None,
557
559
  region: typing.Union[str, collections.abc.Sequence[str], None] = None,
558
560
  cloud: typing.Optional[str] = None,
561
+ routing_region: typing.Optional[str] = None,
559
562
  ) -> Cls:
560
563
  """Override the static Cls configuration with invocation-specific values.
561
564
 
@@ -581,6 +584,7 @@ class Cls(modal.object.Object):
581
584
  timeout: Function timeout in seconds.
582
585
  region: One region or a list of regions to schedule on.
583
586
  cloud: Cloud provider (for example ``aws``, ``gcp``, ``oci``, or ``auto``).
587
+ routing_region: Region that inputs and outputs are routed through for this Cls.
584
588
 
585
589
  Returns:
586
590
  A new ``Cls`` with the merged options.
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.dev12
3
+ Version: 1.5.2.dev13
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,11 +31,11 @@ modal/billing.py,sha256=tWrlpbNau0cfGSr643MzguHS0Dl5cRd7tm0GsCLYvtQ,372
31
31
  modal/billing.pyi,sha256=2hUdEbWa1nLdFfzZpwxHHpyK9k8uBRASGkFmPJhtkUU,7318
32
32
  modal/call_graph.py,sha256=k_wH3DuuUHCeuycHsOqlcOpIlIVbCYi9RPobg21hJdI,2550
33
33
  modal/client.py,sha256=OgjptM5UuU5LL85_-DFia-ehS8UCgMzVuzfNcxA1qPA,16136
34
- modal/client.pyi,sha256=Wu54jIPtSwmrNkZSJH43oDpnqIqP9wfLoFdEQ_xOegk,17854
34
+ modal/client.pyi,sha256=tpDHae-x_4IzBYFDEBz8fER463UO8oWWElqkt5dSCR8,17854
35
35
  modal/cloud_bucket_mount.py,sha256=03gECcV9l2Lnt9k23YrDOTGFW7ajfXMW5O8b1prhtwQ,6254
36
36
  modal/cloud_bucket_mount.pyi,sha256=lMOb44pbNE9kDVEqWfcmvpsnh1sdNNFzuKoVyZZ3d5M,8058
37
- modal/cls.py,sha256=4oWIthR84usP5oejQbdMWzXkvzXyER2GDIpLvLTH4Og,40936
38
- modal/cls.pyi,sha256=8ez2HgEc5fLiivkemC0vlJ6h16-X_3J30yR2IlDM4Gk,29131
37
+ modal/cls.py,sha256=A4EW0VDrYtQubZJIzGoxnP1wANWD_2PMpU1Q0n8oUhU,40834
38
+ modal/cls.pyi,sha256=FzYY7OkxuoqTZ-196Nsp6iC4yLud-Rq4qui_x7jxNzc,29421
39
39
  modal/config.py,sha256=Dj5R7QoLi4r4-yk8vIbB-sGcdoy_HQv4RbFTmeu6lOQ,15153
40
40
  modal/container_process.py,sha256=E2YZImDLG4vq8V_4PqEL65z_tEOpA0rzxf2190BAaA4,8403
41
41
  modal/container_process.pyi,sha256=-8UstN3w-SbKbW2qbf1OSirqDQuLBBdvJE3ysJXTWHQ,4617
@@ -48,7 +48,7 @@ modal/file_io.py,sha256=kfojtm0euzOMhfkVTAGyfuygDJ1XPPHQa5uUhkCsThg,21800
48
48
  modal/file_io.pyi,sha256=Tr0OtfbkTNa8v1dkGtl8l3RH58pMc9uGTYKxL1jNwho,15422
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=CidZZYlfkjoYycjJhi6FiSKRoSIEwezmP2A1LM8GTqY,47618
51
+ modal/functions.pyi,sha256=F7dkqDb9W9Do2ze9e42gUYBx4hsIEbwHMTByZtmGPcw,47618
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
@@ -193,7 +193,7 @@ modal/experimental/flash.py,sha256=GAJ1c-EGL8M3_loAkqr5gdUfySMHY3U_oc6RywfZ8-0,3
193
193
  modal/experimental/flash.pyi,sha256=lpTqJFZRMGWscw0xpYZVdBMnAYjj16asXE4_64A6itQ,17774
194
194
  modal/experimental/ipython.py,sha256=kJ6o9wkAY_MiSb7paewI7f1MJAeqdi8TX5pBdhr_mUI,2925
195
195
  modal/skills/modal/SKILL.md,sha256=WzLjYJ1utjc_ZOf6qZTPwB6wxxwRYB5PibdvIf_FLy0,5316
196
- modal-1.5.2.dev12.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
196
+ modal-1.5.2.dev13.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
197
197
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
198
198
  modal_docs/gen_cli_docs.py,sha256=nZRXP6sh0hTFqTQOo_dMKy8V57I-L6V5cv3cs3eL7NE,5808
199
199
  modal_docs/gen_cli_docs_main.py,sha256=UPGr7O1DYTIRLwfINe2rbdh89J3cPVTU1OWL-SjxnOQ,198
@@ -216,10 +216,10 @@ modal_proto/task_command_router_pb2.py,sha256=LoHxWrzF0EV_gG6SKtAXZbxLUjI-AXzCIG
216
216
  modal_proto/task_command_router_pb2.pyi,sha256=mT-KTIZlLJ5Hd0mXSxyXw84pt_7tV__hd5TpHJ4OHh4,44044
217
217
  modal_proto/task_command_router_pb2_grpc.py,sha256=bX22HJ8qEqKl5YkP00-EPE83rZUdqmk0FDZjtpb21-U,40487
218
218
  modal_proto/task_command_router_pb2_grpc.pyi,sha256=DnkJ4U5hq6wp7XkLyE9xELNqSmNwA_vgawTiS_fVBK0,13241
219
- modal_version/__init__.py,sha256=0Y9YW-8ZVMxJ3fpfg4lqmUsaC92h6NnPICS-gHj17Qc,121
219
+ modal_version/__init__.py,sha256=a_XhHIeQXSGjEvX1Oa5FdomnVTV9K0UG8Gs9zIdlDDk,121
220
220
  modal_version/__main__.py,sha256=nLUbubxKx7GXNzJIkTB7M7_u8080LyLM0IS0rzFkC_c,119
221
- modal-1.5.2.dev12.dist-info/METADATA,sha256=pGfEExcDZLcXGc-WiH5LgAtJtqe568np__cIt0omaUw,2513
222
- modal-1.5.2.dev12.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
223
- modal-1.5.2.dev12.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
224
- modal-1.5.2.dev12.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
225
- modal-1.5.2.dev12.dist-info/RECORD,,
221
+ modal-1.5.2.dev13.dist-info/METADATA,sha256=Os7MEiW7QTgIPHeszqa37tnyH0us6xF17J4lpMNdvqw,2513
222
+ modal-1.5.2.dev13.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
223
+ modal-1.5.2.dev13.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
224
+ modal-1.5.2.dev13.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
225
+ modal-1.5.2.dev13.dist-info/RECORD,,
modal_version/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2026
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.5.2.dev12"
4
+ __version__ = "1.5.2.dev13"