modal 1.1.2.dev26__py3-none-any.whl → 1.1.2.dev27__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_proto/api_pb2.pyi CHANGED
@@ -4805,6 +4805,39 @@ class FunctionCallCancelRequest(google.protobuf.message.Message):
4805
4805
 
4806
4806
  global___FunctionCallCancelRequest = FunctionCallCancelRequest
4807
4807
 
4808
+ class FunctionCallFromIdRequest(google.protobuf.message.Message):
4809
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4810
+
4811
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
4812
+ function_call_id: builtins.str
4813
+ def __init__(
4814
+ self,
4815
+ *,
4816
+ function_call_id: builtins.str = ...,
4817
+ ) -> None: ...
4818
+ def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id"]) -> None: ...
4819
+
4820
+ global___FunctionCallFromIdRequest = FunctionCallFromIdRequest
4821
+
4822
+ class FunctionCallFromIdResponse(google.protobuf.message.Message):
4823
+ """Everything you need to build a FunctionCallHandler."""
4824
+
4825
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4826
+
4827
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
4828
+ NUM_INPUTS_FIELD_NUMBER: builtins.int
4829
+ function_call_id: builtins.str
4830
+ num_inputs: builtins.int
4831
+ def __init__(
4832
+ self,
4833
+ *,
4834
+ function_call_id: builtins.str = ...,
4835
+ num_inputs: builtins.int = ...,
4836
+ ) -> None: ...
4837
+ def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "num_inputs", b"num_inputs"]) -> None: ...
4838
+
4839
+ global___FunctionCallFromIdResponse = FunctionCallFromIdResponse
4840
+
4808
4841
  class FunctionCallGetDataRequest(google.protobuf.message.Message):
4809
4842
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
4810
4843
 
@@ -5216,6 +5249,26 @@ class FunctionExtended(google.protobuf.message.Message):
5216
5249
 
5217
5250
  global___FunctionExtended = FunctionExtended
5218
5251
 
5252
+ class FunctionFinishInputsRequest(google.protobuf.message.Message):
5253
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
5254
+
5255
+ FUNCTION_ID_FIELD_NUMBER: builtins.int
5256
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
5257
+ NUM_INPUTS_FIELD_NUMBER: builtins.int
5258
+ function_id: builtins.str
5259
+ function_call_id: builtins.str
5260
+ num_inputs: builtins.int
5261
+ def __init__(
5262
+ self,
5263
+ *,
5264
+ function_id: builtins.str = ...,
5265
+ function_call_id: builtins.str = ...,
5266
+ num_inputs: builtins.int = ...,
5267
+ ) -> None: ...
5268
+ def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "function_id", b"function_id", "num_inputs", b"num_inputs"]) -> None: ...
5269
+
5270
+ global___FunctionFinishInputsRequest = FunctionFinishInputsRequest
5271
+
5219
5272
  class FunctionGetCallGraphRequest(google.protobuf.message.Message):
5220
5273
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
5221
5274
 
@@ -335,6 +335,11 @@ class ModalClientStub(object):
335
335
  request_serializer=modal__proto_dot_api__pb2.FunctionCallCancelRequest.SerializeToString,
336
336
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
337
337
  )
338
+ self.FunctionCallFromId = channel.unary_unary(
339
+ '/modal.client.ModalClient/FunctionCallFromId',
340
+ request_serializer=modal__proto_dot_api__pb2.FunctionCallFromIdRequest.SerializeToString,
341
+ response_deserializer=modal__proto_dot_api__pb2.FunctionCallFromIdResponse.FromString,
342
+ )
338
343
  self.FunctionCallGetDataIn = channel.unary_stream(
339
344
  '/modal.client.ModalClient/FunctionCallGetDataIn',
340
345
  request_serializer=modal__proto_dot_api__pb2.FunctionCallGetDataRequest.SerializeToString,
@@ -360,6 +365,11 @@ class ModalClientStub(object):
360
365
  request_serializer=modal__proto_dot_api__pb2.FunctionCreateRequest.SerializeToString,
361
366
  response_deserializer=modal__proto_dot_api__pb2.FunctionCreateResponse.FromString,
362
367
  )
368
+ self.FunctionFinishInputs = channel.unary_unary(
369
+ '/modal.client.ModalClient/FunctionFinishInputs',
370
+ request_serializer=modal__proto_dot_api__pb2.FunctionFinishInputsRequest.SerializeToString,
371
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
372
+ )
363
373
  self.FunctionGet = channel.unary_unary(
364
374
  '/modal.client.ModalClient/FunctionGet',
365
375
  request_serializer=modal__proto_dot_api__pb2.FunctionGetRequest.SerializeToString,
@@ -1237,6 +1247,12 @@ class ModalClientServicer(object):
1237
1247
  context.set_details('Method not implemented!')
1238
1248
  raise NotImplementedError('Method not implemented!')
1239
1249
 
1250
+ def FunctionCallFromId(self, request, context):
1251
+ """Missing associated documentation comment in .proto file."""
1252
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1253
+ context.set_details('Method not implemented!')
1254
+ raise NotImplementedError('Method not implemented!')
1255
+
1240
1256
  def FunctionCallGetDataIn(self, request, context):
1241
1257
  """Missing associated documentation comment in .proto file."""
1242
1258
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -1267,6 +1283,13 @@ class ModalClientServicer(object):
1267
1283
  context.set_details('Method not implemented!')
1268
1284
  raise NotImplementedError('Method not implemented!')
1269
1285
 
1286
+ def FunctionFinishInputs(self, request, context):
1287
+ """For map RPCs, to signal that all inputs have been sent
1288
+ """
1289
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1290
+ context.set_details('Method not implemented!')
1291
+ raise NotImplementedError('Method not implemented!')
1292
+
1270
1293
  def FunctionGet(self, request, context):
1271
1294
  """Missing associated documentation comment in .proto file."""
1272
1295
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -2178,6 +2201,11 @@ def add_ModalClientServicer_to_server(servicer, server):
2178
2201
  request_deserializer=modal__proto_dot_api__pb2.FunctionCallCancelRequest.FromString,
2179
2202
  response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
2180
2203
  ),
2204
+ 'FunctionCallFromId': grpc.unary_unary_rpc_method_handler(
2205
+ servicer.FunctionCallFromId,
2206
+ request_deserializer=modal__proto_dot_api__pb2.FunctionCallFromIdRequest.FromString,
2207
+ response_serializer=modal__proto_dot_api__pb2.FunctionCallFromIdResponse.SerializeToString,
2208
+ ),
2181
2209
  'FunctionCallGetDataIn': grpc.unary_stream_rpc_method_handler(
2182
2210
  servicer.FunctionCallGetDataIn,
2183
2211
  request_deserializer=modal__proto_dot_api__pb2.FunctionCallGetDataRequest.FromString,
@@ -2203,6 +2231,11 @@ def add_ModalClientServicer_to_server(servicer, server):
2203
2231
  request_deserializer=modal__proto_dot_api__pb2.FunctionCreateRequest.FromString,
2204
2232
  response_serializer=modal__proto_dot_api__pb2.FunctionCreateResponse.SerializeToString,
2205
2233
  ),
2234
+ 'FunctionFinishInputs': grpc.unary_unary_rpc_method_handler(
2235
+ servicer.FunctionFinishInputs,
2236
+ request_deserializer=modal__proto_dot_api__pb2.FunctionFinishInputsRequest.FromString,
2237
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
2238
+ ),
2206
2239
  'FunctionGet': grpc.unary_unary_rpc_method_handler(
2207
2240
  servicer.FunctionGet,
2208
2241
  request_deserializer=modal__proto_dot_api__pb2.FunctionGetRequest.FromString,
@@ -3776,6 +3809,23 @@ class ModalClient(object):
3776
3809
  options, channel_credentials,
3777
3810
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3778
3811
 
3812
+ @staticmethod
3813
+ def FunctionCallFromId(request,
3814
+ target,
3815
+ options=(),
3816
+ channel_credentials=None,
3817
+ call_credentials=None,
3818
+ insecure=False,
3819
+ compression=None,
3820
+ wait_for_ready=None,
3821
+ timeout=None,
3822
+ metadata=None):
3823
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/FunctionCallFromId',
3824
+ modal__proto_dot_api__pb2.FunctionCallFromIdRequest.SerializeToString,
3825
+ modal__proto_dot_api__pb2.FunctionCallFromIdResponse.FromString,
3826
+ options, channel_credentials,
3827
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3828
+
3779
3829
  @staticmethod
3780
3830
  def FunctionCallGetDataIn(request,
3781
3831
  target,
@@ -3861,6 +3911,23 @@ class ModalClient(object):
3861
3911
  options, channel_credentials,
3862
3912
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3863
3913
 
3914
+ @staticmethod
3915
+ def FunctionFinishInputs(request,
3916
+ target,
3917
+ options=(),
3918
+ channel_credentials=None,
3919
+ call_credentials=None,
3920
+ insecure=False,
3921
+ compression=None,
3922
+ wait_for_ready=None,
3923
+ timeout=None,
3924
+ metadata=None):
3925
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/FunctionFinishInputs',
3926
+ modal__proto_dot_api__pb2.FunctionFinishInputsRequest.SerializeToString,
3927
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
3928
+ options, channel_credentials,
3929
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3930
+
3864
3931
  @staticmethod
3865
3932
  def FunctionGet(request,
3866
3933
  target,
@@ -279,6 +279,10 @@ class ModalClientStub:
279
279
  modal_proto.api_pb2.FunctionCallCancelRequest,
280
280
  google.protobuf.empty_pb2.Empty,
281
281
  ]
282
+ FunctionCallFromId: grpc.UnaryUnaryMultiCallable[
283
+ modal_proto.api_pb2.FunctionCallFromIdRequest,
284
+ modal_proto.api_pb2.FunctionCallFromIdResponse,
285
+ ]
282
286
  FunctionCallGetDataIn: grpc.UnaryStreamMultiCallable[
283
287
  modal_proto.api_pb2.FunctionCallGetDataRequest,
284
288
  modal_proto.api_pb2.DataChunk,
@@ -299,6 +303,11 @@ class ModalClientStub:
299
303
  modal_proto.api_pb2.FunctionCreateRequest,
300
304
  modal_proto.api_pb2.FunctionCreateResponse,
301
305
  ]
306
+ FunctionFinishInputs: grpc.UnaryUnaryMultiCallable[
307
+ modal_proto.api_pb2.FunctionFinishInputsRequest,
308
+ google.protobuf.empty_pb2.Empty,
309
+ ]
310
+ """For map RPCs, to signal that all inputs have been sent"""
302
311
  FunctionGet: grpc.UnaryUnaryMultiCallable[
303
312
  modal_proto.api_pb2.FunctionGetRequest,
304
313
  modal_proto.api_pb2.FunctionGetResponse,
@@ -1097,6 +1106,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
1097
1106
  context: grpc.ServicerContext,
1098
1107
  ) -> google.protobuf.empty_pb2.Empty: ...
1099
1108
  @abc.abstractmethod
1109
+ def FunctionCallFromId(
1110
+ self,
1111
+ request: modal_proto.api_pb2.FunctionCallFromIdRequest,
1112
+ context: grpc.ServicerContext,
1113
+ ) -> modal_proto.api_pb2.FunctionCallFromIdResponse: ...
1114
+ @abc.abstractmethod
1100
1115
  def FunctionCallGetDataIn(
1101
1116
  self,
1102
1117
  request: modal_proto.api_pb2.FunctionCallGetDataRequest,
@@ -1127,6 +1142,13 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
1127
1142
  context: grpc.ServicerContext,
1128
1143
  ) -> modal_proto.api_pb2.FunctionCreateResponse: ...
1129
1144
  @abc.abstractmethod
1145
+ def FunctionFinishInputs(
1146
+ self,
1147
+ request: modal_proto.api_pb2.FunctionFinishInputsRequest,
1148
+ context: grpc.ServicerContext,
1149
+ ) -> google.protobuf.empty_pb2.Empty:
1150
+ """For map RPCs, to signal that all inputs have been sent"""
1151
+ @abc.abstractmethod
1130
1152
  def FunctionGet(
1131
1153
  self,
1132
1154
  request: modal_proto.api_pb2.FunctionGetRequest,
@@ -82,11 +82,13 @@ class ModalClientModal:
82
82
  self.FunctionAsyncInvoke = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionAsyncInvoke, client, server_url)
83
83
  self.FunctionBindParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionBindParams, client, server_url)
84
84
  self.FunctionCallCancel = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallCancel, client, server_url)
85
+ self.FunctionCallFromId = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallFromId, client, server_url)
85
86
  self.FunctionCallGetDataIn = modal.client.UnaryStreamWrapper(grpclib_stub.FunctionCallGetDataIn, client, server_url)
86
87
  self.FunctionCallGetDataOut = modal.client.UnaryStreamWrapper(grpclib_stub.FunctionCallGetDataOut, client, server_url)
87
88
  self.FunctionCallList = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallList, client, server_url)
88
89
  self.FunctionCallPutDataOut = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallPutDataOut, client, server_url)
89
90
  self.FunctionCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCreate, client, server_url)
91
+ self.FunctionFinishInputs = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionFinishInputs, client, server_url)
90
92
  self.FunctionGet = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionGet, client, server_url)
91
93
  self.FunctionGetCallGraph = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionGetCallGraph, client, server_url)
92
94
  self.FunctionGetCurrentStats = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionGetCurrentStats, client, server_url)
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.2.dev26"
4
+ __version__ = "1.1.2.dev27"