modal 0.74.14__py3-none-any.whl → 0.74.15__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
@@ -27,7 +27,7 @@ class _Client:
27
27
  _snapshotted: bool
28
28
 
29
29
  def __init__(
30
- self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.14"
30
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.15"
31
31
  ): ...
32
32
  def is_closed(self) -> bool: ...
33
33
  @property
@@ -85,7 +85,7 @@ class Client:
85
85
  _snapshotted: bool
86
86
 
87
87
  def __init__(
88
- self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.14"
88
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.74.15"
89
89
  ): ...
90
90
  def is_closed(self) -> bool: ...
91
91
  @property
modal/functions.pyi CHANGED
@@ -201,11 +201,11 @@ class Function(
201
201
 
202
202
  _call_generator_nowait: ___call_generator_nowait_spec[typing_extensions.Self]
203
203
 
204
- class __remote_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
204
+ class __remote_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER, SUPERSELF]):
205
205
  def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER: ...
206
206
  async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER: ...
207
207
 
208
- remote: __remote_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
208
+ remote: __remote_spec[modal._functions.P, modal._functions.ReturnType, typing_extensions.Self]
209
209
 
210
210
  class __remote_gen_spec(typing_extensions.Protocol[SUPERSELF]):
211
211
  def __call__(self, *args, **kwargs) -> typing.Generator[typing.Any, None, None]: ...
@@ -220,19 +220,19 @@ class Function(
220
220
  self, *args: modal._functions.P.args, **kwargs: modal._functions.P.kwargs
221
221
  ) -> modal._functions.OriginalReturnType: ...
222
222
 
223
- class ___experimental_spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
223
+ class ___experimental_spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER, SUPERSELF]):
224
224
  def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
225
225
  async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
226
226
 
227
227
  _experimental_spawn: ___experimental_spawn_spec[
228
- modal._functions.ReturnType, modal._functions.P, typing_extensions.Self
228
+ modal._functions.P, modal._functions.ReturnType, typing_extensions.Self
229
229
  ]
230
230
 
231
- class __spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
231
+ class __spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER, SUPERSELF]):
232
232
  def __call__(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
233
233
  async def aio(self, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]: ...
234
234
 
235
- spawn: __spawn_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
235
+ spawn: __spawn_spec[modal._functions.P, modal._functions.ReturnType, typing_extensions.Self]
236
236
 
237
237
  def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]: ...
238
238
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 0.74.14
3
+ Version: 0.74.15
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -22,7 +22,7 @@ modal/app.py,sha256=1GSPMMYRkG17FQwnA_PleK9YQrPQWXlN_4mpZ5VRA4Q,48468
22
22
  modal/app.pyi,sha256=bpC9uN_B4d_UtyXVuhGpXC2RM-IcsytS0ndu-GoKrHQ,27276
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=U-YKSw0n7J1ZLREt9cbEJCtmHe5YoPKFxl0xlkan2yc,15565
25
- modal/client.pyi,sha256=K1ooS9wvZZk-ldqnYjZXswq7NjJ23MXo6DZkX3OJtnA,7593
25
+ modal/client.pyi,sha256=gTGLwo62ctAnv6FICBPjNpwC5GMyQ6CyL5fBhdNM0C4,7593
26
26
  modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
27
27
  modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
28
28
  modal/cls.py,sha256=GvaNl8R5UsH7Vg88WEOyerdjvZEPK7xxi3nqHlyOW_c,33497
@@ -39,7 +39,7 @@ modal/file_io.py,sha256=lcMs_E9Xfm0YX1t9U2wNIBPnqHRxmImqjLW1GHqVmyg,20945
39
39
  modal/file_io.pyi,sha256=NTRft1tbPSWf9TlWVeZmTlgB5AZ_Zhu2srWIrWr7brk,9445
40
40
  modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw,6497
41
41
  modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
42
- modal/functions.pyi,sha256=I8dNJnvs6FguR8XAUqnMUg6X1214UzeLoAydZBrEa2g,14855
42
+ modal/functions.pyi,sha256=2J7jPa2tQWhuUy67wg-MWvEx0rwrBNjX6UTEJbAUq_A,14855
43
43
  modal/gpu.py,sha256=Kbhs_u49FaC2Zi0TjCdrpstpRtT5eZgecynmQi5IZVE,6752
44
44
  modal/image.py,sha256=I-9_YZL0SSfnuGPywa3-4PlxDmJ-53p7ce3gP74SrOA,92877
45
45
  modal/image.pyi,sha256=89zv12C1sFrJs7Es9SnX23_m208ASAdeNGCVTrhjzHI,25632
@@ -145,7 +145,7 @@ modal/requirements/2024.10.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddR
145
145
  modal/requirements/PREVIEW.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddRo,296
146
146
  modal/requirements/README.md,sha256=9tK76KP0Uph7O0M5oUgsSwEZDj5y-dcUPsnpR0Sc-Ik,854
147
147
  modal/requirements/base-images.json,sha256=57vMSqzMbLBxw5tFWSaMiIkkVEps4JfX5PAtXGnkS4U,740
148
- modal-0.74.14.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
148
+ modal-0.74.15.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
149
149
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
150
150
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
151
151
  modal_docs/gen_reference_docs.py,sha256=cvTgltucqYLLIX84QxAwf51Z5Vc2n6cLxS8VcrxNCAo,6401
@@ -153,13 +153,13 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
153
153
  modal_docs/mdmd/mdmd.py,sha256=Irx49MCCTlBOP4FBdLR--JrpA3-WhsVeriq0LGgsRic,6232
154
154
  modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
155
155
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
156
- modal_proto/api.proto,sha256=kovn2o64lk57QaRxqWPgFMuiR1ceZrrXw_U3B0DNuPQ,93026
157
- modal_proto/api_grpc.py,sha256=DlrVx10B6HLy4LjWrgK7HJ7kUNDKqEvm6mUqh-6EVvs,112161
158
- modal_proto/api_pb2.py,sha256=4GDk37vbGyrbdupsLVOojyEIFfqWyYptaYO9pLzM1ec,328101
159
- modal_proto/api_pb2.pyi,sha256=isSiMw7B3hyz-OeVS9xK6Jnk3TaEVea_aAAx4T7aW_g,446747
160
- modal_proto/api_pb2_grpc.py,sha256=NQPpAa3Co-zFNB6L6BQoZjf-RaOlWFFPX8chQyGHQEo,242401
161
- modal_proto/api_pb2_grpc.pyi,sha256=zK2Ms2Xws02cC9uy5U5A5sPULXx4T6A9o9BONqFcipg,56456
162
- modal_proto/modal_api_grpc.py,sha256=K_GsrHIw2CayKh_nyuYAblQW_tOijUNW267Hs9vWUWU,14948
156
+ modal_proto/api.proto,sha256=eD4A8icYJFeunpUiDqra14EmUnosttBtDnrrfdxGeBw,93783
157
+ modal_proto/api_grpc.py,sha256=LZ_rylBFJ79c5-dYOcyebPjRGrCKNO3j2K7giw9P9-g,113653
158
+ modal_proto/api_pb2.py,sha256=NEV1ZmTOfpBuCgJ4F6eSZKQkBHXPaHowdJtCs0OCek0,330916
159
+ modal_proto/api_pb2.pyi,sha256=JP8s6JHac1Cz2kpJaBNk6K_bPoel1j50uJYco6lV7Co,450054
160
+ modal_proto/api_pb2_grpc.py,sha256=QaApxS-KExaYpQU0kdnoxXPrERZk_b4lRZKY_V4mbq0,245789
161
+ modal_proto/api_pb2_grpc.pyi,sha256=6obh-mFStQnsXcUHzTI_SXuED9mhwcKnfIt_urSZkJw,57552
162
+ modal_proto/modal_api_grpc.py,sha256=r7qGJdW69v5pXca2ySm6gqTGYG_pFPWBno_4XGMkbpU,15136
163
163
  modal_proto/modal_options_grpc.py,sha256=qJ1cuwA54oRqrdTyPTbvfhFZYd9HhJKK5UCwt523r3Y,120
164
164
  modal_proto/options.proto,sha256=zp9h5r61ivsp0XwEWwNBsVqNTbRA1VSY_UtN7sEcHtE,549
165
165
  modal_proto/options_grpc.py,sha256=M18X3d-8F_cNYSVM3I25dUTO5rZ0rd-vCCfynfh13Nc,125
@@ -170,9 +170,9 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
170
170
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
171
171
  modal_version/__init__.py,sha256=m94xZNWIjH8oUtJk4l9xfovzDJede2o7X-q0MHVECtM,470
172
172
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
173
- modal_version/_version_generated.py,sha256=uuUINVrRoOHnG0345kZM29EhW_7y0-WJxEmNLI4sO_Q,149
174
- modal-0.74.14.dist-info/METADATA,sha256=o3yU8T6X_kHWR581mpmsux-kk2_QtQGrGqNL7Kct9jU,2474
175
- modal-0.74.14.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
176
- modal-0.74.14.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
177
- modal-0.74.14.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
178
- modal-0.74.14.dist-info/RECORD,,
173
+ modal_version/_version_generated.py,sha256=BwTNwunmOMlhLbdcrq2kBshM6ByivCgCW2YhrtCy1ss,149
174
+ modal-0.74.15.dist-info/METADATA,sha256=1EpkkZUHT-Oleu-NfpBAaFlurY2PnvSTOXlkpWh12lg,2474
175
+ modal-0.74.15.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
176
+ modal-0.74.15.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
177
+ modal-0.74.15.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
178
+ modal-0.74.15.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -574,6 +574,27 @@ message Asgi {
574
574
  }
575
575
  }
576
576
 
577
+ message AttemptAwaitRequest {
578
+ string attempt_token = 1;
579
+ double requested_at = 2; // Used for waypoints.
580
+ float timeout_secs = 3;
581
+ }
582
+
583
+ message AttemptAwaitResponse {
584
+ optional FunctionGetOutputsItem output = 1;
585
+ }
586
+
587
+ message AttemptStartRequest {
588
+ string function_id = 1;
589
+ string parent_input_id = 2;
590
+ FunctionPutInputsItem input = 3;
591
+ }
592
+
593
+ message AttemptStartResponse {
594
+ string attempt_token = 1;
595
+ FunctionRetryPolicy retry_policy = 2;
596
+ }
597
+
577
598
  message AutoscalerSettings {
578
599
  // A collection of user-configurable settings for Function autoscaling
579
600
  // These are used for static configuration and for dynamic autoscaler updates
@@ -3085,6 +3106,12 @@ service ModalClient {
3085
3106
  rpc AppSetObjects(AppSetObjectsRequest) returns (google.protobuf.Empty);
3086
3107
  rpc AppStop(AppStopRequest) returns (google.protobuf.Empty);
3087
3108
 
3109
+ // Input Plane
3110
+ // These RPCs are experimental, not deployed to production, and can be changed / removed
3111
+ // without needing to worry about backwards compatibility.
3112
+ rpc AttemptAwait(AttemptAwaitRequest) returns (AttemptAwaitResponse);
3113
+ rpc AttemptStart(AttemptStartRequest) returns (AttemptStartResponse);
3114
+
3088
3115
  // Blobs
3089
3116
  rpc BlobCreate(BlobCreateRequest) returns (BlobCreateResponse);
3090
3117
  rpc BlobGet(BlobGetRequest) returns (BlobGetResponse);
modal_proto/api_grpc.py CHANGED
@@ -82,6 +82,14 @@ class ModalClientBase(abc.ABC):
82
82
  async def AppStop(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.AppStopRequest, google.protobuf.empty_pb2.Empty]') -> None:
83
83
  pass
84
84
 
85
+ @abc.abstractmethod
86
+ async def AttemptAwait(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.AttemptAwaitRequest, modal_proto.api_pb2.AttemptAwaitResponse]') -> None:
87
+ pass
88
+
89
+ @abc.abstractmethod
90
+ async def AttemptStart(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.AttemptStartRequest, modal_proto.api_pb2.AttemptStartResponse]') -> None:
91
+ pass
92
+
85
93
  @abc.abstractmethod
86
94
  async def BlobCreate(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.BlobCreateRequest, modal_proto.api_pb2.BlobCreateResponse]') -> None:
87
95
  pass
@@ -700,6 +708,18 @@ class ModalClientBase(abc.ABC):
700
708
  modal_proto.api_pb2.AppStopRequest,
701
709
  google.protobuf.empty_pb2.Empty,
702
710
  ),
711
+ '/modal.client.ModalClient/AttemptAwait': grpclib.const.Handler(
712
+ self.AttemptAwait,
713
+ grpclib.const.Cardinality.UNARY_UNARY,
714
+ modal_proto.api_pb2.AttemptAwaitRequest,
715
+ modal_proto.api_pb2.AttemptAwaitResponse,
716
+ ),
717
+ '/modal.client.ModalClient/AttemptStart': grpclib.const.Handler(
718
+ self.AttemptStart,
719
+ grpclib.const.Cardinality.UNARY_UNARY,
720
+ modal_proto.api_pb2.AttemptStartRequest,
721
+ modal_proto.api_pb2.AttemptStartResponse,
722
+ ),
703
723
  '/modal.client.ModalClient/BlobCreate': grpclib.const.Handler(
704
724
  self.BlobCreate,
705
725
  grpclib.const.Cardinality.UNARY_UNARY,
@@ -1582,6 +1602,18 @@ class ModalClientStub:
1582
1602
  modal_proto.api_pb2.AppStopRequest,
1583
1603
  google.protobuf.empty_pb2.Empty,
1584
1604
  )
1605
+ self.AttemptAwait = grpclib.client.UnaryUnaryMethod(
1606
+ channel,
1607
+ '/modal.client.ModalClient/AttemptAwait',
1608
+ modal_proto.api_pb2.AttemptAwaitRequest,
1609
+ modal_proto.api_pb2.AttemptAwaitResponse,
1610
+ )
1611
+ self.AttemptStart = grpclib.client.UnaryUnaryMethod(
1612
+ channel,
1613
+ '/modal.client.ModalClient/AttemptStart',
1614
+ modal_proto.api_pb2.AttemptStartRequest,
1615
+ modal_proto.api_pb2.AttemptStartResponse,
1616
+ )
1585
1617
  self.BlobCreate = grpclib.client.UnaryUnaryMethod(
1586
1618
  channel,
1587
1619
  '/modal.client.ModalClient/BlobCreate',