modal 1.1.4.dev20__py3-none-any.whl → 1.1.4.dev22__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 +2 -2
- modal/functions.pyi +6 -6
- {modal-1.1.4.dev20.dist-info → modal-1.1.4.dev22.dist-info}/METADATA +1 -1
- {modal-1.1.4.dev20.dist-info → modal-1.1.4.dev22.dist-info}/RECORD +16 -16
- modal_proto/api.proto +5 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +495 -485
- modal_proto/api_pb2.pyi +14 -0
- modal_proto/api_pb2_grpc.py +34 -1
- modal_proto/api_pb2_grpc.pyi +13 -3
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/__init__.py +1 -1
- {modal-1.1.4.dev20.dist-info → modal-1.1.4.dev22.dist-info}/WHEEL +0 -0
- {modal-1.1.4.dev20.dist-info → modal-1.1.4.dev22.dist-info}/entry_points.txt +0 -0
- {modal-1.1.4.dev20.dist-info → modal-1.1.4.dev22.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.4.dev20.dist-info → modal-1.1.4.dev22.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -6561,6 +6561,20 @@ class ImageContextFile(google.protobuf.message.Message):
|
|
6561
6561
|
|
6562
6562
|
global___ImageContextFile = ImageContextFile
|
6563
6563
|
|
6564
|
+
class ImageDeleteRequest(google.protobuf.message.Message):
|
6565
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6566
|
+
|
6567
|
+
IMAGE_ID_FIELD_NUMBER: builtins.int
|
6568
|
+
image_id: builtins.str
|
6569
|
+
def __init__(
|
6570
|
+
self,
|
6571
|
+
*,
|
6572
|
+
image_id: builtins.str = ...,
|
6573
|
+
) -> None: ...
|
6574
|
+
def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id"]) -> None: ...
|
6575
|
+
|
6576
|
+
global___ImageDeleteRequest = ImageDeleteRequest
|
6577
|
+
|
6564
6578
|
class ImageFromIdRequest(google.protobuf.message.Message):
|
6565
6579
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6566
6580
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -440,6 +440,11 @@ class ModalClientStub(object):
|
|
440
440
|
request_serializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsRequest.SerializeToString,
|
441
441
|
response_deserializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsResponse.FromString,
|
442
442
|
)
|
443
|
+
self.ImageDelete = channel.unary_unary(
|
444
|
+
'/modal.client.ModalClient/ImageDelete',
|
445
|
+
request_serializer=modal__proto_dot_api__pb2.ImageDeleteRequest.SerializeToString,
|
446
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
447
|
+
)
|
443
448
|
self.ImageFromId = channel.unary_unary(
|
444
449
|
'/modal.client.ModalClient/ImageFromId',
|
445
450
|
request_serializer=modal__proto_dot_api__pb2.ImageFromIdRequest.SerializeToString,
|
@@ -1377,13 +1382,19 @@ class ModalClientServicer(object):
|
|
1377
1382
|
context.set_details('Method not implemented!')
|
1378
1383
|
raise NotImplementedError('Method not implemented!')
|
1379
1384
|
|
1380
|
-
def
|
1385
|
+
def ImageDelete(self, request, context):
|
1381
1386
|
"""Images
|
1382
1387
|
"""
|
1383
1388
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1384
1389
|
context.set_details('Method not implemented!')
|
1385
1390
|
raise NotImplementedError('Method not implemented!')
|
1386
1391
|
|
1392
|
+
def ImageFromId(self, request, context):
|
1393
|
+
"""Missing associated documentation comment in .proto file."""
|
1394
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1395
|
+
context.set_details('Method not implemented!')
|
1396
|
+
raise NotImplementedError('Method not implemented!')
|
1397
|
+
|
1387
1398
|
def ImageGetOrCreate(self, request, context):
|
1388
1399
|
"""Missing associated documentation comment in .proto file."""
|
1389
1400
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2306,6 +2317,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2306
2317
|
request_deserializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsRequest.FromString,
|
2307
2318
|
response_serializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsResponse.SerializeToString,
|
2308
2319
|
),
|
2320
|
+
'ImageDelete': grpc.unary_unary_rpc_method_handler(
|
2321
|
+
servicer.ImageDelete,
|
2322
|
+
request_deserializer=modal__proto_dot_api__pb2.ImageDeleteRequest.FromString,
|
2323
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2324
|
+
),
|
2309
2325
|
'ImageFromId': grpc.unary_unary_rpc_method_handler(
|
2310
2326
|
servicer.ImageFromId,
|
2311
2327
|
request_deserializer=modal__proto_dot_api__pb2.ImageFromIdRequest.FromString,
|
@@ -4166,6 +4182,23 @@ class ModalClient(object):
|
|
4166
4182
|
options, channel_credentials,
|
4167
4183
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4168
4184
|
|
4185
|
+
@staticmethod
|
4186
|
+
def ImageDelete(request,
|
4187
|
+
target,
|
4188
|
+
options=(),
|
4189
|
+
channel_credentials=None,
|
4190
|
+
call_credentials=None,
|
4191
|
+
insecure=False,
|
4192
|
+
compression=None,
|
4193
|
+
wait_for_ready=None,
|
4194
|
+
timeout=None,
|
4195
|
+
metadata=None):
|
4196
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/ImageDelete',
|
4197
|
+
modal__proto_dot_api__pb2.ImageDeleteRequest.SerializeToString,
|
4198
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
4199
|
+
options, channel_credentials,
|
4200
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4201
|
+
|
4169
4202
|
@staticmethod
|
4170
4203
|
def ImageFromId(request,
|
4171
4204
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -367,11 +367,15 @@ class ModalClientStub:
|
|
367
367
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
|
368
368
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
|
369
369
|
]
|
370
|
+
ImageDelete: grpc.UnaryUnaryMultiCallable[
|
371
|
+
modal_proto.api_pb2.ImageDeleteRequest,
|
372
|
+
google.protobuf.empty_pb2.Empty,
|
373
|
+
]
|
374
|
+
"""Images"""
|
370
375
|
ImageFromId: grpc.UnaryUnaryMultiCallable[
|
371
376
|
modal_proto.api_pb2.ImageFromIdRequest,
|
372
377
|
modal_proto.api_pb2.ImageFromIdResponse,
|
373
378
|
]
|
374
|
-
"""Images"""
|
375
379
|
ImageGetOrCreate: grpc.UnaryUnaryMultiCallable[
|
376
380
|
modal_proto.api_pb2.ImageGetOrCreateRequest,
|
377
381
|
modal_proto.api_pb2.ImageGetOrCreateResponse,
|
@@ -1236,12 +1240,18 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1236
1240
|
context: grpc.ServicerContext,
|
1237
1241
|
) -> modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse: ...
|
1238
1242
|
@abc.abstractmethod
|
1243
|
+
def ImageDelete(
|
1244
|
+
self,
|
1245
|
+
request: modal_proto.api_pb2.ImageDeleteRequest,
|
1246
|
+
context: grpc.ServicerContext,
|
1247
|
+
) -> google.protobuf.empty_pb2.Empty:
|
1248
|
+
"""Images"""
|
1249
|
+
@abc.abstractmethod
|
1239
1250
|
def ImageFromId(
|
1240
1251
|
self,
|
1241
1252
|
request: modal_proto.api_pb2.ImageFromIdRequest,
|
1242
1253
|
context: grpc.ServicerContext,
|
1243
|
-
) -> modal_proto.api_pb2.ImageFromIdResponse:
|
1244
|
-
"""Images"""
|
1254
|
+
) -> modal_proto.api_pb2.ImageFromIdResponse: ...
|
1245
1255
|
@abc.abstractmethod
|
1246
1256
|
def ImageGetOrCreate(
|
1247
1257
|
self,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -103,6 +103,7 @@ class ModalClientModal:
|
|
103
103
|
self.FunctionRetryInputs = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionRetryInputs, client, server_url)
|
104
104
|
self.FunctionStartPtyShell = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionStartPtyShell, client, server_url)
|
105
105
|
self.FunctionUpdateSchedulingParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionUpdateSchedulingParams, client, server_url)
|
106
|
+
self.ImageDelete = modal.client.UnaryUnaryWrapper(grpclib_stub.ImageDelete, client, server_url)
|
106
107
|
self.ImageFromId = modal.client.UnaryUnaryWrapper(grpclib_stub.ImageFromId, client, server_url)
|
107
108
|
self.ImageGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.ImageGetOrCreate, client, server_url)
|
108
109
|
self.ImageJoinStreaming = modal.client.UnaryStreamWrapper(grpclib_stub.ImageJoinStreaming, client, server_url)
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|