modal 1.0.5.dev9__py3-none-any.whl → 1.0.5.dev11__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
@@ -4076,6 +4076,60 @@ class FilesystemRuntimeOutputBatch(google.protobuf.message.Message):
4076
4076
 
4077
4077
  global___FilesystemRuntimeOutputBatch = FilesystemRuntimeOutputBatch
4078
4078
 
4079
+ class FlashContainerDeregisterRequest(google.protobuf.message.Message):
4080
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4081
+
4082
+ SERVICE_NAME_FIELD_NUMBER: builtins.int
4083
+ service_name: builtins.str
4084
+ def __init__(
4085
+ self,
4086
+ *,
4087
+ service_name: builtins.str = ...,
4088
+ ) -> None: ...
4089
+ def ClearField(self, field_name: typing_extensions.Literal["service_name", b"service_name"]) -> None: ...
4090
+
4091
+ global___FlashContainerDeregisterRequest = FlashContainerDeregisterRequest
4092
+
4093
+ class FlashContainerRegisterRequest(google.protobuf.message.Message):
4094
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4095
+
4096
+ SERVICE_NAME_FIELD_NUMBER: builtins.int
4097
+ PRIORITY_FIELD_NUMBER: builtins.int
4098
+ WEIGHT_FIELD_NUMBER: builtins.int
4099
+ HOST_FIELD_NUMBER: builtins.int
4100
+ PORT_FIELD_NUMBER: builtins.int
4101
+ service_name: builtins.str
4102
+ priority: builtins.int
4103
+ weight: builtins.int
4104
+ host: builtins.str
4105
+ port: builtins.int
4106
+ def __init__(
4107
+ self,
4108
+ *,
4109
+ service_name: builtins.str = ...,
4110
+ priority: builtins.int = ...,
4111
+ weight: builtins.int = ...,
4112
+ host: builtins.str = ...,
4113
+ port: builtins.int = ...,
4114
+ ) -> None: ...
4115
+ def ClearField(self, field_name: typing_extensions.Literal["host", b"host", "port", b"port", "priority", b"priority", "service_name", b"service_name", "weight", b"weight"]) -> None: ...
4116
+
4117
+ global___FlashContainerRegisterRequest = FlashContainerRegisterRequest
4118
+
4119
+ class FlashContainerRegisterResponse(google.protobuf.message.Message):
4120
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4121
+
4122
+ URL_FIELD_NUMBER: builtins.int
4123
+ url: builtins.str
4124
+ def __init__(
4125
+ self,
4126
+ *,
4127
+ url: builtins.str = ...,
4128
+ ) -> None: ...
4129
+ def ClearField(self, field_name: typing_extensions.Literal["url", b"url"]) -> None: ...
4130
+
4131
+ global___FlashContainerRegisterResponse = FlashContainerRegisterResponse
4132
+
4079
4133
  class Function(google.protobuf.message.Message):
4080
4134
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
4081
4135
 
@@ -295,6 +295,16 @@ class ModalClientStub(object):
295
295
  request_serializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.SerializeToString,
296
296
  response_deserializer=modal__proto_dot_api__pb2.EnvironmentListItem.FromString,
297
297
  )
298
+ self.FlashContainerDeregister = channel.unary_unary(
299
+ '/modal.client.ModalClient/FlashContainerDeregister',
300
+ request_serializer=modal__proto_dot_api__pb2.FlashContainerDeregisterRequest.SerializeToString,
301
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
302
+ )
303
+ self.FlashContainerRegister = channel.unary_unary(
304
+ '/modal.client.ModalClient/FlashContainerRegister',
305
+ request_serializer=modal__proto_dot_api__pb2.FlashContainerRegisterRequest.SerializeToString,
306
+ response_deserializer=modal__proto_dot_api__pb2.FlashContainerRegisterResponse.FromString,
307
+ )
298
308
  self.FunctionAsyncInvoke = channel.unary_unary(
299
309
  '/modal.client.ModalClient/FunctionAsyncInvoke',
300
310
  request_serializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.SerializeToString,
@@ -1133,6 +1143,19 @@ class ModalClientServicer(object):
1133
1143
  context.set_details('Method not implemented!')
1134
1144
  raise NotImplementedError('Method not implemented!')
1135
1145
 
1146
+ def FlashContainerDeregister(self, request, context):
1147
+ """Modal Flash (experimental)
1148
+ """
1149
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1150
+ context.set_details('Method not implemented!')
1151
+ raise NotImplementedError('Method not implemented!')
1152
+
1153
+ def FlashContainerRegister(self, request, context):
1154
+ """Missing associated documentation comment in .proto file."""
1155
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1156
+ context.set_details('Method not implemented!')
1157
+ raise NotImplementedError('Method not implemented!')
1158
+
1136
1159
  def FunctionAsyncInvoke(self, request, context):
1137
1160
  """Functions
1138
1161
  """
@@ -2016,6 +2039,16 @@ def add_ModalClientServicer_to_server(servicer, server):
2016
2039
  request_deserializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.FromString,
2017
2040
  response_serializer=modal__proto_dot_api__pb2.EnvironmentListItem.SerializeToString,
2018
2041
  ),
2042
+ 'FlashContainerDeregister': grpc.unary_unary_rpc_method_handler(
2043
+ servicer.FlashContainerDeregister,
2044
+ request_deserializer=modal__proto_dot_api__pb2.FlashContainerDeregisterRequest.FromString,
2045
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
2046
+ ),
2047
+ 'FlashContainerRegister': grpc.unary_unary_rpc_method_handler(
2048
+ servicer.FlashContainerRegister,
2049
+ request_deserializer=modal__proto_dot_api__pb2.FlashContainerRegisterRequest.FromString,
2050
+ response_serializer=modal__proto_dot_api__pb2.FlashContainerRegisterResponse.SerializeToString,
2051
+ ),
2019
2052
  'FunctionAsyncInvoke': grpc.unary_unary_rpc_method_handler(
2020
2053
  servicer.FunctionAsyncInvoke,
2021
2054
  request_deserializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.FromString,
@@ -3463,6 +3496,40 @@ class ModalClient(object):
3463
3496
  options, channel_credentials,
3464
3497
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3465
3498
 
3499
+ @staticmethod
3500
+ def FlashContainerDeregister(request,
3501
+ target,
3502
+ options=(),
3503
+ channel_credentials=None,
3504
+ call_credentials=None,
3505
+ insecure=False,
3506
+ compression=None,
3507
+ wait_for_ready=None,
3508
+ timeout=None,
3509
+ metadata=None):
3510
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/FlashContainerDeregister',
3511
+ modal__proto_dot_api__pb2.FlashContainerDeregisterRequest.SerializeToString,
3512
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
3513
+ options, channel_credentials,
3514
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3515
+
3516
+ @staticmethod
3517
+ def FlashContainerRegister(request,
3518
+ target,
3519
+ options=(),
3520
+ channel_credentials=None,
3521
+ call_credentials=None,
3522
+ insecure=False,
3523
+ compression=None,
3524
+ wait_for_ready=None,
3525
+ timeout=None,
3526
+ metadata=None):
3527
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/FlashContainerRegister',
3528
+ modal__proto_dot_api__pb2.FlashContainerRegisterRequest.SerializeToString,
3529
+ modal__proto_dot_api__pb2.FlashContainerRegisterResponse.FromString,
3530
+ options, channel_credentials,
3531
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
3532
+
3466
3533
  @staticmethod
3467
3534
  def FunctionAsyncInvoke(request,
3468
3535
  target,
@@ -247,6 +247,15 @@ class ModalClientStub:
247
247
  modal_proto.api_pb2.EnvironmentUpdateRequest,
248
248
  modal_proto.api_pb2.EnvironmentListItem,
249
249
  ]
250
+ FlashContainerDeregister: grpc.UnaryUnaryMultiCallable[
251
+ modal_proto.api_pb2.FlashContainerDeregisterRequest,
252
+ google.protobuf.empty_pb2.Empty,
253
+ ]
254
+ """Modal Flash (experimental)"""
255
+ FlashContainerRegister: grpc.UnaryUnaryMultiCallable[
256
+ modal_proto.api_pb2.FlashContainerRegisterRequest,
257
+ modal_proto.api_pb2.FlashContainerRegisterResponse,
258
+ ]
250
259
  FunctionAsyncInvoke: grpc.UnaryUnaryMultiCallable[
251
260
  modal_proto.api_pb2.FunctionAsyncInvokeRequest,
252
261
  modal_proto.api_pb2.FunctionAsyncInvokeResponse,
@@ -1005,6 +1014,19 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
1005
1014
  context: grpc.ServicerContext,
1006
1015
  ) -> modal_proto.api_pb2.EnvironmentListItem: ...
1007
1016
  @abc.abstractmethod
1017
+ def FlashContainerDeregister(
1018
+ self,
1019
+ request: modal_proto.api_pb2.FlashContainerDeregisterRequest,
1020
+ context: grpc.ServicerContext,
1021
+ ) -> google.protobuf.empty_pb2.Empty:
1022
+ """Modal Flash (experimental)"""
1023
+ @abc.abstractmethod
1024
+ def FlashContainerRegister(
1025
+ self,
1026
+ request: modal_proto.api_pb2.FlashContainerRegisterRequest,
1027
+ context: grpc.ServicerContext,
1028
+ ) -> modal_proto.api_pb2.FlashContainerRegisterResponse: ...
1029
+ @abc.abstractmethod
1008
1030
  def FunctionAsyncInvoke(
1009
1031
  self,
1010
1032
  request: modal_proto.api_pb2.FunctionAsyncInvokeRequest,
@@ -74,6 +74,8 @@ class ModalClientModal:
74
74
  self.EnvironmentGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentGetOrCreate, client, server_url)
75
75
  self.EnvironmentList = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentList, client, server_url)
76
76
  self.EnvironmentUpdate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentUpdate, client, server_url)
77
+ self.FlashContainerDeregister = modal.client.UnaryUnaryWrapper(grpclib_stub.FlashContainerDeregister, client, server_url)
78
+ self.FlashContainerRegister = modal.client.UnaryUnaryWrapper(grpclib_stub.FlashContainerRegister, client, server_url)
77
79
  self.FunctionAsyncInvoke = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionAsyncInvoke, client, server_url)
78
80
  self.FunctionBindParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionBindParams, client, server_url)
79
81
  self.FunctionCallCancel = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallCancel, 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.0.5.dev9"
4
+ __version__ = "1.0.5.dev11"