modal 0.67.33__py3-none-any.whl → 0.67.43__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
@@ -1224,16 +1224,21 @@ class AppPublishResponse(google.protobuf.message.Message):
1224
1224
 
1225
1225
  URL_FIELD_NUMBER: builtins.int
1226
1226
  WARNINGS_FIELD_NUMBER: builtins.int
1227
+ SERVER_WARNINGS_FIELD_NUMBER: builtins.int
1227
1228
  url: builtins.str
1228
1229
  @property
1229
- def warnings(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
1230
+ def warnings(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
1231
+ """Deprecated soon in favor of server_warnings"""
1232
+ @property
1233
+ def server_warnings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Warning]: ...
1230
1234
  def __init__(
1231
1235
  self,
1232
1236
  *,
1233
1237
  url: builtins.str = ...,
1234
1238
  warnings: collections.abc.Iterable[builtins.str] | None = ...,
1239
+ server_warnings: collections.abc.Iterable[global___Warning] | None = ...,
1235
1240
  ) -> None: ...
1236
- def ClearField(self, field_name: typing_extensions.Literal["url", b"url", "warnings", b"warnings"]) -> None: ...
1241
+ def ClearField(self, field_name: typing_extensions.Literal["server_warnings", b"server_warnings", "url", b"url", "warnings", b"warnings"]) -> None: ...
1237
1242
 
1238
1243
  global___AppPublishResponse = AppPublishResponse
1239
1244
 
@@ -1912,17 +1917,21 @@ class ClassGetResponse(google.protobuf.message.Message):
1912
1917
 
1913
1918
  CLASS_ID_FIELD_NUMBER: builtins.int
1914
1919
  HANDLE_METADATA_FIELD_NUMBER: builtins.int
1920
+ SERVER_WARNINGS_FIELD_NUMBER: builtins.int
1915
1921
  class_id: builtins.str
1916
1922
  @property
1917
1923
  def handle_metadata(self) -> global___ClassHandleMetadata: ...
1924
+ @property
1925
+ def server_warnings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Warning]: ...
1918
1926
  def __init__(
1919
1927
  self,
1920
1928
  *,
1921
1929
  class_id: builtins.str = ...,
1922
1930
  handle_metadata: global___ClassHandleMetadata | None = ...,
1931
+ server_warnings: collections.abc.Iterable[global___Warning] | None = ...,
1923
1932
  ) -> None: ...
1924
1933
  def HasField(self, field_name: typing_extensions.Literal["handle_metadata", b"handle_metadata"]) -> builtins.bool: ...
1925
- def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "handle_metadata", b"handle_metadata"]) -> None: ...
1934
+ def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "handle_metadata", b"handle_metadata", "server_warnings", b"server_warnings"]) -> None: ...
1926
1935
 
1927
1936
  global___ClassGetResponse = ClassGetResponse
1928
1937
 
@@ -3768,6 +3777,45 @@ class Function(google.protobuf.message.Message):
3768
3777
 
3769
3778
  global___Function = Function
3770
3779
 
3780
+ class FunctionAsyncInvokeRequest(google.protobuf.message.Message):
3781
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
3782
+
3783
+ FUNCTION_ID_FIELD_NUMBER: builtins.int
3784
+ PARENT_INPUT_ID_FIELD_NUMBER: builtins.int
3785
+ INPUT_FIELD_NUMBER: builtins.int
3786
+ function_id: builtins.str
3787
+ parent_input_id: builtins.str
3788
+ @property
3789
+ def input(self) -> global___FunctionInput: ...
3790
+ def __init__(
3791
+ self,
3792
+ *,
3793
+ function_id: builtins.str = ...,
3794
+ parent_input_id: builtins.str = ...,
3795
+ input: global___FunctionInput | None = ...,
3796
+ ) -> None: ...
3797
+ def HasField(self, field_name: typing_extensions.Literal["input", b"input"]) -> builtins.bool: ...
3798
+ def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "input", b"input", "parent_input_id", b"parent_input_id"]) -> None: ...
3799
+
3800
+ global___FunctionAsyncInvokeRequest = FunctionAsyncInvokeRequest
3801
+
3802
+ class FunctionAsyncInvokeResponse(google.protobuf.message.Message):
3803
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
3804
+
3805
+ RETRY_WITH_BLOB_UPLOAD_FIELD_NUMBER: builtins.int
3806
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
3807
+ retry_with_blob_upload: builtins.bool
3808
+ function_call_id: builtins.str
3809
+ def __init__(
3810
+ self,
3811
+ *,
3812
+ retry_with_blob_upload: builtins.bool = ...,
3813
+ function_call_id: builtins.str = ...,
3814
+ ) -> None: ...
3815
+ def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "retry_with_blob_upload", b"retry_with_blob_upload"]) -> None: ...
3816
+
3817
+ global___FunctionAsyncInvokeResponse = FunctionAsyncInvokeResponse
3818
+
3771
3819
  class FunctionBindParamsRequest(google.protobuf.message.Message):
3772
3820
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
3773
3821
 
@@ -4498,17 +4546,21 @@ class FunctionGetResponse(google.protobuf.message.Message):
4498
4546
 
4499
4547
  FUNCTION_ID_FIELD_NUMBER: builtins.int
4500
4548
  HANDLE_METADATA_FIELD_NUMBER: builtins.int
4549
+ SERVER_WARNINGS_FIELD_NUMBER: builtins.int
4501
4550
  function_id: builtins.str
4502
4551
  @property
4503
4552
  def handle_metadata(self) -> global___FunctionHandleMetadata: ...
4553
+ @property
4554
+ def server_warnings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Warning]: ...
4504
4555
  def __init__(
4505
4556
  self,
4506
4557
  *,
4507
4558
  function_id: builtins.str = ...,
4508
4559
  handle_metadata: global___FunctionHandleMetadata | None = ...,
4560
+ server_warnings: collections.abc.Iterable[global___Warning] | None = ...,
4509
4561
  ) -> None: ...
4510
4562
  def HasField(self, field_name: typing_extensions.Literal["handle_metadata", b"handle_metadata"]) -> builtins.bool: ...
4511
- def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "handle_metadata", b"handle_metadata"]) -> None: ...
4563
+ def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "handle_metadata", b"handle_metadata", "server_warnings", b"server_warnings"]) -> None: ...
4512
4564
 
4513
4565
  global___FunctionGetResponse = FunctionGetResponse
4514
4566
 
@@ -8462,6 +8514,38 @@ class VolumeRemoveFileRequest(google.protobuf.message.Message):
8462
8514
 
8463
8515
  global___VolumeRemoveFileRequest = VolumeRemoveFileRequest
8464
8516
 
8517
+ class Warning(google.protobuf.message.Message):
8518
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
8519
+
8520
+ class _WarningType:
8521
+ ValueType = typing.NewType("ValueType", builtins.int)
8522
+ V: typing_extensions.TypeAlias = ValueType
8523
+
8524
+ class _WarningTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Warning._WarningType.ValueType], builtins.type): # noqa: F821
8525
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
8526
+ WARNING_TYPE_UNSPECIFIED: Warning._WarningType.ValueType # 0
8527
+ WARNING_TYPE_CLIENT_DEPRECATION: Warning._WarningType.ValueType # 1
8528
+ WARNING_TYPE_RESOURCE_LIMIT: Warning._WarningType.ValueType # 2
8529
+
8530
+ class WarningType(_WarningType, metaclass=_WarningTypeEnumTypeWrapper): ...
8531
+ WARNING_TYPE_UNSPECIFIED: Warning.WarningType.ValueType # 0
8532
+ WARNING_TYPE_CLIENT_DEPRECATION: Warning.WarningType.ValueType # 1
8533
+ WARNING_TYPE_RESOURCE_LIMIT: Warning.WarningType.ValueType # 2
8534
+
8535
+ TYPE_FIELD_NUMBER: builtins.int
8536
+ MESSAGE_FIELD_NUMBER: builtins.int
8537
+ type: global___Warning.WarningType.ValueType
8538
+ message: builtins.str
8539
+ def __init__(
8540
+ self,
8541
+ *,
8542
+ type: global___Warning.WarningType.ValueType = ...,
8543
+ message: builtins.str = ...,
8544
+ ) -> None: ...
8545
+ def ClearField(self, field_name: typing_extensions.Literal["message", b"message", "type", b"type"]) -> None: ...
8546
+
8547
+ global___Warning = Warning
8548
+
8465
8549
  class WebUrlInfo(google.protobuf.message.Message):
8466
8550
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8467
8551
 
@@ -265,6 +265,11 @@ class ModalClientStub(object):
265
265
  request_serializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.SerializeToString,
266
266
  response_deserializer=modal__proto_dot_api__pb2.EnvironmentListItem.FromString,
267
267
  )
268
+ self.FunctionAsyncInvoke = channel.unary_unary(
269
+ '/modal.client.ModalClient/FunctionAsyncInvoke',
270
+ request_serializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.SerializeToString,
271
+ response_deserializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeResponse.FromString,
272
+ )
268
273
  self.FunctionBindParams = channel.unary_unary(
269
274
  '/modal.client.ModalClient/FunctionBindParams',
270
275
  request_serializer=modal__proto_dot_api__pb2.FunctionBindParamsRequest.SerializeToString,
@@ -983,13 +988,19 @@ class ModalClientServicer(object):
983
988
  context.set_details('Method not implemented!')
984
989
  raise NotImplementedError('Method not implemented!')
985
990
 
986
- def FunctionBindParams(self, request, context):
991
+ def FunctionAsyncInvoke(self, request, context):
987
992
  """Functions
988
993
  """
989
994
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
990
995
  context.set_details('Method not implemented!')
991
996
  raise NotImplementedError('Method not implemented!')
992
997
 
998
+ def FunctionBindParams(self, request, context):
999
+ """Missing associated documentation comment in .proto file."""
1000
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1001
+ context.set_details('Method not implemented!')
1002
+ raise NotImplementedError('Method not implemented!')
1003
+
993
1004
  def FunctionCallCancel(self, request, context):
994
1005
  """Missing associated documentation comment in .proto file."""
995
1006
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -1739,6 +1750,11 @@ def add_ModalClientServicer_to_server(servicer, server):
1739
1750
  request_deserializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.FromString,
1740
1751
  response_serializer=modal__proto_dot_api__pb2.EnvironmentListItem.SerializeToString,
1741
1752
  ),
1753
+ 'FunctionAsyncInvoke': grpc.unary_unary_rpc_method_handler(
1754
+ servicer.FunctionAsyncInvoke,
1755
+ request_deserializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.FromString,
1756
+ response_serializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeResponse.SerializeToString,
1757
+ ),
1742
1758
  'FunctionBindParams': grpc.unary_unary_rpc_method_handler(
1743
1759
  servicer.FunctionBindParams,
1744
1760
  request_deserializer=modal__proto_dot_api__pb2.FunctionBindParamsRequest.FromString,
@@ -3004,6 +3020,23 @@ class ModalClient(object):
3004
3020
  options, channel_credentials,
3005
3021
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3006
3022
 
3023
+ @staticmethod
3024
+ def FunctionAsyncInvoke(request,
3025
+ target,
3026
+ options=(),
3027
+ channel_credentials=None,
3028
+ call_credentials=None,
3029
+ insecure=False,
3030
+ compression=None,
3031
+ wait_for_ready=None,
3032
+ timeout=None,
3033
+ metadata=None):
3034
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/FunctionAsyncInvoke',
3035
+ modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.SerializeToString,
3036
+ modal__proto_dot_api__pb2.FunctionAsyncInvokeResponse.FromString,
3037
+ options, channel_credentials,
3038
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3039
+
3007
3040
  @staticmethod
3008
3041
  def FunctionBindParams(request,
3009
3042
  target,
@@ -218,11 +218,15 @@ class ModalClientStub:
218
218
  modal_proto.api_pb2.EnvironmentUpdateRequest,
219
219
  modal_proto.api_pb2.EnvironmentListItem,
220
220
  ]
221
+ FunctionAsyncInvoke: grpc.UnaryUnaryMultiCallable[
222
+ modal_proto.api_pb2.FunctionAsyncInvokeRequest,
223
+ modal_proto.api_pb2.FunctionAsyncInvokeResponse,
224
+ ]
225
+ """Functions"""
221
226
  FunctionBindParams: grpc.UnaryUnaryMultiCallable[
222
227
  modal_proto.api_pb2.FunctionBindParamsRequest,
223
228
  modal_proto.api_pb2.FunctionBindParamsResponse,
224
229
  ]
225
- """Functions"""
226
230
  FunctionCallCancel: grpc.UnaryUnaryMultiCallable[
227
231
  modal_proto.api_pb2.FunctionCallCancelRequest,
228
232
  google.protobuf.empty_pb2.Empty,
@@ -870,12 +874,18 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
870
874
  context: grpc.ServicerContext,
871
875
  ) -> modal_proto.api_pb2.EnvironmentListItem: ...
872
876
  @abc.abstractmethod
877
+ def FunctionAsyncInvoke(
878
+ self,
879
+ request: modal_proto.api_pb2.FunctionAsyncInvokeRequest,
880
+ context: grpc.ServicerContext,
881
+ ) -> modal_proto.api_pb2.FunctionAsyncInvokeResponse:
882
+ """Functions"""
883
+ @abc.abstractmethod
873
884
  def FunctionBindParams(
874
885
  self,
875
886
  request: modal_proto.api_pb2.FunctionBindParamsRequest,
876
887
  context: grpc.ServicerContext,
877
- ) -> modal_proto.api_pb2.FunctionBindParamsResponse:
878
- """Functions"""
888
+ ) -> modal_proto.api_pb2.FunctionBindParamsResponse: ...
879
889
  @abc.abstractmethod
880
890
  def FunctionCallCancel(
881
891
  self,
@@ -62,6 +62,7 @@ class ModalClientModal:
62
62
  self.EnvironmentGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentGetOrCreate, client)
63
63
  self.EnvironmentList = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentList, client)
64
64
  self.EnvironmentUpdate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentUpdate, client)
65
+ self.FunctionAsyncInvoke = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionAsyncInvoke, client)
65
66
  self.FunctionBindParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionBindParams, client)
66
67
  self.FunctionCallCancel = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallCancel, client)
67
68
  self.FunctionCallGetDataIn = modal.client.UnaryStreamWrapper(grpclib_stub.FunctionCallGetDataIn, client)
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2024
2
2
 
3
3
  # Note: Reset this value to -1 whenever you make a minor `0.X` release of the client.
4
- build_number = 33 # git: 14899d6
4
+ build_number = 43 # git: 98ef292