modal 0.71.4__py3-none-any.whl → 0.71.6__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-0.71.4.dist-info → modal-0.71.6.dist-info}/METADATA +1 -1
- {modal-0.71.4.dist-info → modal-0.71.6.dist-info}/RECORD +15 -15
- modal_proto/api.proto +11 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +798 -778
- modal_proto/api_pb2.pyi +37 -1
- 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/_version_generated.py +1 -1
- {modal-0.71.4.dist-info → modal-0.71.6.dist-info}/LICENSE +0 -0
- {modal-0.71.4.dist-info → modal-0.71.6.dist-info}/WHEEL +0 -0
- {modal-0.71.4.dist-info → modal-0.71.6.dist-info}/entry_points.txt +0 -0
- {modal-0.71.4.dist-info → modal-0.71.6.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -811,6 +811,7 @@ class AppDeploymentHistory(google.protobuf.message.Message):
|
|
811
811
|
CLIENT_VERSION_FIELD_NUMBER: builtins.int
|
812
812
|
DEPLOYED_AT_FIELD_NUMBER: builtins.int
|
813
813
|
DEPLOYED_BY_FIELD_NUMBER: builtins.int
|
814
|
+
DEPLOYED_BY_AVATAR_URL_FIELD_NUMBER: builtins.int
|
814
815
|
TAG_FIELD_NUMBER: builtins.int
|
815
816
|
ROLLBACK_VERSION_FIELD_NUMBER: builtins.int
|
816
817
|
ROLLBACK_ALLOWED_FIELD_NUMBER: builtins.int
|
@@ -819,6 +820,7 @@ class AppDeploymentHistory(google.protobuf.message.Message):
|
|
819
820
|
client_version: builtins.str
|
820
821
|
deployed_at: builtins.float
|
821
822
|
deployed_by: builtins.str
|
823
|
+
deployed_by_avatar_url: builtins.str
|
822
824
|
tag: builtins.str
|
823
825
|
rollback_version: builtins.int
|
824
826
|
rollback_allowed: builtins.bool
|
@@ -830,11 +832,12 @@ class AppDeploymentHistory(google.protobuf.message.Message):
|
|
830
832
|
client_version: builtins.str = ...,
|
831
833
|
deployed_at: builtins.float = ...,
|
832
834
|
deployed_by: builtins.str = ...,
|
835
|
+
deployed_by_avatar_url: builtins.str = ...,
|
833
836
|
tag: builtins.str = ...,
|
834
837
|
rollback_version: builtins.int = ...,
|
835
838
|
rollback_allowed: builtins.bool = ...,
|
836
839
|
) -> None: ...
|
837
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "client_version", b"client_version", "deployed_at", b"deployed_at", "deployed_by", b"deployed_by", "rollback_allowed", b"rollback_allowed", "rollback_version", b"rollback_version", "tag", b"tag", "version", b"version"]) -> None: ...
|
840
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "client_version", b"client_version", "deployed_at", b"deployed_at", "deployed_by", b"deployed_by", "deployed_by_avatar_url", b"deployed_by_avatar_url", "rollback_allowed", b"rollback_allowed", "rollback_version", b"rollback_version", "tag", b"tag", "version", b"version"]) -> None: ...
|
838
841
|
|
839
842
|
global___AppDeploymentHistory = AppDeploymentHistory
|
840
843
|
|
@@ -5523,6 +5526,39 @@ class ImageContextFile(google.protobuf.message.Message):
|
|
5523
5526
|
|
5524
5527
|
global___ImageContextFile = ImageContextFile
|
5525
5528
|
|
5529
|
+
class ImageFromIdRequest(google.protobuf.message.Message):
|
5530
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
5531
|
+
|
5532
|
+
IMAGE_ID_FIELD_NUMBER: builtins.int
|
5533
|
+
image_id: builtins.str
|
5534
|
+
def __init__(
|
5535
|
+
self,
|
5536
|
+
*,
|
5537
|
+
image_id: builtins.str = ...,
|
5538
|
+
) -> None: ...
|
5539
|
+
def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id"]) -> None: ...
|
5540
|
+
|
5541
|
+
global___ImageFromIdRequest = ImageFromIdRequest
|
5542
|
+
|
5543
|
+
class ImageFromIdResponse(google.protobuf.message.Message):
|
5544
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
5545
|
+
|
5546
|
+
IMAGE_ID_FIELD_NUMBER: builtins.int
|
5547
|
+
METADATA_FIELD_NUMBER: builtins.int
|
5548
|
+
image_id: builtins.str
|
5549
|
+
@property
|
5550
|
+
def metadata(self) -> global___ImageMetadata: ...
|
5551
|
+
def __init__(
|
5552
|
+
self,
|
5553
|
+
*,
|
5554
|
+
image_id: builtins.str = ...,
|
5555
|
+
metadata: global___ImageMetadata | None = ...,
|
5556
|
+
) -> None: ...
|
5557
|
+
def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
5558
|
+
def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id", "metadata", b"metadata"]) -> None: ...
|
5559
|
+
|
5560
|
+
global___ImageFromIdResponse = ImageFromIdResponse
|
5561
|
+
|
5526
5562
|
class ImageGetOrCreateRequest(google.protobuf.message.Message):
|
5527
5563
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
5528
5564
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -380,6 +380,11 @@ class ModalClientStub(object):
|
|
380
380
|
request_serializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsRequest.SerializeToString,
|
381
381
|
response_deserializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsResponse.FromString,
|
382
382
|
)
|
383
|
+
self.ImageFromId = channel.unary_unary(
|
384
|
+
'/modal.client.ModalClient/ImageFromId',
|
385
|
+
request_serializer=modal__proto_dot_api__pb2.ImageFromIdRequest.SerializeToString,
|
386
|
+
response_deserializer=modal__proto_dot_api__pb2.ImageFromIdResponse.FromString,
|
387
|
+
)
|
383
388
|
self.ImageGetOrCreate = channel.unary_unary(
|
384
389
|
'/modal.client.ModalClient/ImageGetOrCreate',
|
385
390
|
request_serializer=modal__proto_dot_api__pb2.ImageGetOrCreateRequest.SerializeToString,
|
@@ -1135,13 +1140,19 @@ class ModalClientServicer(object):
|
|
1135
1140
|
context.set_details('Method not implemented!')
|
1136
1141
|
raise NotImplementedError('Method not implemented!')
|
1137
1142
|
|
1138
|
-
def
|
1143
|
+
def ImageFromId(self, request, context):
|
1139
1144
|
"""Images
|
1140
1145
|
"""
|
1141
1146
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1142
1147
|
context.set_details('Method not implemented!')
|
1143
1148
|
raise NotImplementedError('Method not implemented!')
|
1144
1149
|
|
1150
|
+
def ImageGetOrCreate(self, request, context):
|
1151
|
+
"""Missing associated documentation comment in .proto file."""
|
1152
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1153
|
+
context.set_details('Method not implemented!')
|
1154
|
+
raise NotImplementedError('Method not implemented!')
|
1155
|
+
|
1145
1156
|
def ImageJoinStreaming(self, request, context):
|
1146
1157
|
"""Missing associated documentation comment in .proto file."""
|
1147
1158
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -1876,6 +1887,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
1876
1887
|
request_deserializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsRequest.FromString,
|
1877
1888
|
response_serializer=modal__proto_dot_api__pb2.FunctionUpdateSchedulingParamsResponse.SerializeToString,
|
1878
1889
|
),
|
1890
|
+
'ImageFromId': grpc.unary_unary_rpc_method_handler(
|
1891
|
+
servicer.ImageFromId,
|
1892
|
+
request_deserializer=modal__proto_dot_api__pb2.ImageFromIdRequest.FromString,
|
1893
|
+
response_serializer=modal__proto_dot_api__pb2.ImageFromIdResponse.SerializeToString,
|
1894
|
+
),
|
1879
1895
|
'ImageGetOrCreate': grpc.unary_unary_rpc_method_handler(
|
1880
1896
|
servicer.ImageGetOrCreate,
|
1881
1897
|
request_deserializer=modal__proto_dot_api__pb2.ImageGetOrCreateRequest.FromString,
|
@@ -3427,6 +3443,23 @@ class ModalClient(object):
|
|
3427
3443
|
options, channel_credentials,
|
3428
3444
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3429
3445
|
|
3446
|
+
@staticmethod
|
3447
|
+
def ImageFromId(request,
|
3448
|
+
target,
|
3449
|
+
options=(),
|
3450
|
+
channel_credentials=None,
|
3451
|
+
call_credentials=None,
|
3452
|
+
insecure=False,
|
3453
|
+
compression=None,
|
3454
|
+
wait_for_ready=None,
|
3455
|
+
timeout=None,
|
3456
|
+
metadata=None):
|
3457
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/ImageFromId',
|
3458
|
+
modal__proto_dot_api__pb2.ImageFromIdRequest.SerializeToString,
|
3459
|
+
modal__proto_dot_api__pb2.ImageFromIdResponse.FromString,
|
3460
|
+
options, channel_credentials,
|
3461
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3462
|
+
|
3430
3463
|
@staticmethod
|
3431
3464
|
def ImageGetOrCreate(request,
|
3432
3465
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -314,11 +314,15 @@ class ModalClientStub:
|
|
314
314
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
|
315
315
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
|
316
316
|
]
|
317
|
+
ImageFromId: grpc.UnaryUnaryMultiCallable[
|
318
|
+
modal_proto.api_pb2.ImageFromIdRequest,
|
319
|
+
modal_proto.api_pb2.ImageFromIdResponse,
|
320
|
+
]
|
321
|
+
"""Images"""
|
317
322
|
ImageGetOrCreate: grpc.UnaryUnaryMultiCallable[
|
318
323
|
modal_proto.api_pb2.ImageGetOrCreateRequest,
|
319
324
|
modal_proto.api_pb2.ImageGetOrCreateResponse,
|
320
325
|
]
|
321
|
-
"""Images"""
|
322
326
|
ImageJoinStreaming: grpc.UnaryStreamMultiCallable[
|
323
327
|
modal_proto.api_pb2.ImageJoinStreamingRequest,
|
324
328
|
modal_proto.api_pb2.ImageJoinStreamingResponse,
|
@@ -1020,12 +1024,18 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1020
1024
|
context: grpc.ServicerContext,
|
1021
1025
|
) -> modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse: ...
|
1022
1026
|
@abc.abstractmethod
|
1027
|
+
def ImageFromId(
|
1028
|
+
self,
|
1029
|
+
request: modal_proto.api_pb2.ImageFromIdRequest,
|
1030
|
+
context: grpc.ServicerContext,
|
1031
|
+
) -> modal_proto.api_pb2.ImageFromIdResponse:
|
1032
|
+
"""Images"""
|
1033
|
+
@abc.abstractmethod
|
1023
1034
|
def ImageGetOrCreate(
|
1024
1035
|
self,
|
1025
1036
|
request: modal_proto.api_pb2.ImageGetOrCreateRequest,
|
1026
1037
|
context: grpc.ServicerContext,
|
1027
|
-
) -> modal_proto.api_pb2.ImageGetOrCreateResponse:
|
1028
|
-
"""Images"""
|
1038
|
+
) -> modal_proto.api_pb2.ImageGetOrCreateResponse: ...
|
1029
1039
|
@abc.abstractmethod
|
1030
1040
|
def ImageJoinStreaming(
|
1031
1041
|
self,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -85,6 +85,7 @@ class ModalClientModal:
|
|
85
85
|
self.FunctionRetryInputs = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionRetryInputs, client)
|
86
86
|
self.FunctionStartPtyShell = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionStartPtyShell, client)
|
87
87
|
self.FunctionUpdateSchedulingParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionUpdateSchedulingParams, client)
|
88
|
+
self.ImageFromId = modal.client.UnaryUnaryWrapper(grpclib_stub.ImageFromId, client)
|
88
89
|
self.ImageGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.ImageGetOrCreate, client)
|
89
90
|
self.ImageJoinStreaming = modal.client.UnaryStreamWrapper(grpclib_stub.ImageJoinStreaming, client)
|
90
91
|
self.MountGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.MountGetOrCreate, client)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|