modal 0.72.39__py3-none-any.whl → 0.72.41__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-0.72.39.dist-info → modal-0.72.41.dist-info}/METADATA +1 -1
- {modal-0.72.39.dist-info → modal-0.72.41.dist-info}/RECORD +16 -16
- modal_proto/api.proto +11 -3
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +824 -806
- modal_proto/api_pb2.pyi +33 -8
- modal_proto/api_pb2_grpc.py +33 -0
- modal_proto/api_pb2_grpc.pyi +10 -0
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/_version_generated.py +1 -1
- {modal-0.72.39.dist-info → modal-0.72.41.dist-info}/LICENSE +0 -0
- {modal-0.72.39.dist-info → modal-0.72.41.dist-info}/WHEEL +0 -0
- {modal-0.72.39.dist-info → modal-0.72.41.dist-info}/entry_points.txt +0 -0
- {modal-0.72.39.dist-info → modal-0.72.41.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -948,6 +948,7 @@ class AppGetLogsRequest(google.protobuf.message.Message):
|
|
948
948
|
FUNCTION_ID_FIELD_NUMBER: builtins.int
|
949
949
|
INPUT_ID_FIELD_NUMBER: builtins.int
|
950
950
|
TASK_ID_FIELD_NUMBER: builtins.int
|
951
|
+
FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
|
951
952
|
FILE_DESCRIPTOR_FIELD_NUMBER: builtins.int
|
952
953
|
app_id: builtins.str
|
953
954
|
timeout: builtins.float
|
@@ -955,6 +956,7 @@ class AppGetLogsRequest(google.protobuf.message.Message):
|
|
955
956
|
function_id: builtins.str
|
956
957
|
input_id: builtins.str
|
957
958
|
task_id: builtins.str
|
959
|
+
function_call_id: builtins.str
|
958
960
|
file_descriptor: global___FileDescriptor.ValueType
|
959
961
|
def __init__(
|
960
962
|
self,
|
@@ -965,9 +967,10 @@ class AppGetLogsRequest(google.protobuf.message.Message):
|
|
965
967
|
function_id: builtins.str = ...,
|
966
968
|
input_id: builtins.str = ...,
|
967
969
|
task_id: builtins.str = ...,
|
970
|
+
function_call_id: builtins.str = ...,
|
968
971
|
file_descriptor: global___FileDescriptor.ValueType = ...,
|
969
972
|
) -> None: ...
|
970
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "file_descriptor", b"file_descriptor", "function_id", b"function_id", "input_id", b"input_id", "last_entry_id", b"last_entry_id", "task_id", b"task_id", "timeout", b"timeout"]) -> None: ...
|
973
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "file_descriptor", b"file_descriptor", "function_call_id", b"function_call_id", "function_id", b"function_id", "input_id", b"input_id", "last_entry_id", b"last_entry_id", "task_id", b"task_id", "timeout", b"timeout"]) -> None: ...
|
971
974
|
|
972
975
|
global___AppGetLogsRequest = AppGetLogsRequest
|
973
976
|
|
@@ -7426,20 +7429,14 @@ global___SandboxListResponse = SandboxListResponse
|
|
7426
7429
|
class SandboxRestoreRequest(google.protobuf.message.Message):
|
7427
7430
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7428
7431
|
|
7429
|
-
APP_ID_FIELD_NUMBER: builtins.int
|
7430
7432
|
SNAPSHOT_ID_FIELD_NUMBER: builtins.int
|
7431
|
-
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
7432
|
-
app_id: builtins.str
|
7433
7433
|
snapshot_id: builtins.str
|
7434
|
-
environment_name: builtins.str
|
7435
7434
|
def __init__(
|
7436
7435
|
self,
|
7437
7436
|
*,
|
7438
|
-
app_id: builtins.str = ...,
|
7439
7437
|
snapshot_id: builtins.str = ...,
|
7440
|
-
environment_name: builtins.str = ...,
|
7441
7438
|
) -> None: ...
|
7442
|
-
def ClearField(self, field_name: typing_extensions.Literal["
|
7439
|
+
def ClearField(self, field_name: typing_extensions.Literal["snapshot_id", b"snapshot_id"]) -> None: ...
|
7443
7440
|
|
7444
7441
|
global___SandboxRestoreRequest = SandboxRestoreRequest
|
7445
7442
|
|
@@ -7457,6 +7454,34 @@ class SandboxRestoreResponse(google.protobuf.message.Message):
|
|
7457
7454
|
|
7458
7455
|
global___SandboxRestoreResponse = SandboxRestoreResponse
|
7459
7456
|
|
7457
|
+
class SandboxSnapshotFromIdRequest(google.protobuf.message.Message):
|
7458
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7459
|
+
|
7460
|
+
SNAPSHOT_ID_FIELD_NUMBER: builtins.int
|
7461
|
+
snapshot_id: builtins.str
|
7462
|
+
def __init__(
|
7463
|
+
self,
|
7464
|
+
*,
|
7465
|
+
snapshot_id: builtins.str = ...,
|
7466
|
+
) -> None: ...
|
7467
|
+
def ClearField(self, field_name: typing_extensions.Literal["snapshot_id", b"snapshot_id"]) -> None: ...
|
7468
|
+
|
7469
|
+
global___SandboxSnapshotFromIdRequest = SandboxSnapshotFromIdRequest
|
7470
|
+
|
7471
|
+
class SandboxSnapshotFromIdResponse(google.protobuf.message.Message):
|
7472
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7473
|
+
|
7474
|
+
SNAPSHOT_ID_FIELD_NUMBER: builtins.int
|
7475
|
+
snapshot_id: builtins.str
|
7476
|
+
def __init__(
|
7477
|
+
self,
|
7478
|
+
*,
|
7479
|
+
snapshot_id: builtins.str = ...,
|
7480
|
+
) -> None: ...
|
7481
|
+
def ClearField(self, field_name: typing_extensions.Literal["snapshot_id", b"snapshot_id"]) -> None: ...
|
7482
|
+
|
7483
|
+
global___SandboxSnapshotFromIdResponse = SandboxSnapshotFromIdResponse
|
7484
|
+
|
7460
7485
|
class SandboxSnapshotFsRequest(google.protobuf.message.Message):
|
7461
7486
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7462
7487
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -525,6 +525,11 @@ class ModalClientStub(object):
|
|
525
525
|
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotRequest.SerializeToString,
|
526
526
|
response_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotResponse.FromString,
|
527
527
|
)
|
528
|
+
self.SandboxSnapshotFromId = channel.unary_unary(
|
529
|
+
'/modal.client.ModalClient/SandboxSnapshotFromId',
|
530
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFromIdRequest.SerializeToString,
|
531
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFromIdResponse.FromString,
|
532
|
+
)
|
528
533
|
self.SandboxSnapshotFs = channel.unary_unary(
|
529
534
|
'/modal.client.ModalClient/SandboxSnapshotFs',
|
530
535
|
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsRequest.SerializeToString,
|
@@ -1356,6 +1361,12 @@ class ModalClientServicer(object):
|
|
1356
1361
|
context.set_details('Method not implemented!')
|
1357
1362
|
raise NotImplementedError('Method not implemented!')
|
1358
1363
|
|
1364
|
+
def SandboxSnapshotFromId(self, request, context):
|
1365
|
+
"""Missing associated documentation comment in .proto file."""
|
1366
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1367
|
+
context.set_details('Method not implemented!')
|
1368
|
+
raise NotImplementedError('Method not implemented!')
|
1369
|
+
|
1359
1370
|
def SandboxSnapshotFs(self, request, context):
|
1360
1371
|
"""Missing associated documentation comment in .proto file."""
|
1361
1372
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2110,6 +2121,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2110
2121
|
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotRequest.FromString,
|
2111
2122
|
response_serializer=modal__proto_dot_api__pb2.SandboxSnapshotResponse.SerializeToString,
|
2112
2123
|
),
|
2124
|
+
'SandboxSnapshotFromId': grpc.unary_unary_rpc_method_handler(
|
2125
|
+
servicer.SandboxSnapshotFromId,
|
2126
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFromIdRequest.FromString,
|
2127
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFromIdResponse.SerializeToString,
|
2128
|
+
),
|
2113
2129
|
'SandboxSnapshotFs': grpc.unary_unary_rpc_method_handler(
|
2114
2130
|
servicer.SandboxSnapshotFs,
|
2115
2131
|
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsRequest.FromString,
|
@@ -4049,6 +4065,23 @@ class ModalClient(object):
|
|
4049
4065
|
options, channel_credentials,
|
4050
4066
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4051
4067
|
|
4068
|
+
@staticmethod
|
4069
|
+
def SandboxSnapshotFromId(request,
|
4070
|
+
target,
|
4071
|
+
options=(),
|
4072
|
+
channel_credentials=None,
|
4073
|
+
call_credentials=None,
|
4074
|
+
insecure=False,
|
4075
|
+
compression=None,
|
4076
|
+
wait_for_ready=None,
|
4077
|
+
timeout=None,
|
4078
|
+
metadata=None):
|
4079
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxSnapshotFromId',
|
4080
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFromIdRequest.SerializeToString,
|
4081
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFromIdResponse.FromString,
|
4082
|
+
options, channel_credentials,
|
4083
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4084
|
+
|
4052
4085
|
@staticmethod
|
4053
4086
|
def SandboxSnapshotFs(request,
|
4054
4087
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -437,6 +437,10 @@ class ModalClientStub:
|
|
437
437
|
modal_proto.api_pb2.SandboxSnapshotRequest,
|
438
438
|
modal_proto.api_pb2.SandboxSnapshotResponse,
|
439
439
|
]
|
440
|
+
SandboxSnapshotFromId: grpc.UnaryUnaryMultiCallable[
|
441
|
+
modal_proto.api_pb2.SandboxSnapshotFromIdRequest,
|
442
|
+
modal_proto.api_pb2.SandboxSnapshotFromIdResponse,
|
443
|
+
]
|
440
444
|
SandboxSnapshotFs: grpc.UnaryUnaryMultiCallable[
|
441
445
|
modal_proto.api_pb2.SandboxSnapshotFsRequest,
|
442
446
|
modal_proto.api_pb2.SandboxSnapshotFsResponse,
|
@@ -1234,6 +1238,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1234
1238
|
context: grpc.ServicerContext,
|
1235
1239
|
) -> modal_proto.api_pb2.SandboxSnapshotResponse: ...
|
1236
1240
|
@abc.abstractmethod
|
1241
|
+
def SandboxSnapshotFromId(
|
1242
|
+
self,
|
1243
|
+
request: modal_proto.api_pb2.SandboxSnapshotFromIdRequest,
|
1244
|
+
context: grpc.ServicerContext,
|
1245
|
+
) -> modal_proto.api_pb2.SandboxSnapshotFromIdResponse: ...
|
1246
|
+
@abc.abstractmethod
|
1237
1247
|
def SandboxSnapshotFs(
|
1238
1248
|
self,
|
1239
1249
|
request: modal_proto.api_pb2.SandboxSnapshotFsRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -114,6 +114,7 @@ class ModalClientModal:
|
|
114
114
|
self.SandboxList = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxList, client)
|
115
115
|
self.SandboxRestore = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxRestore, client)
|
116
116
|
self.SandboxSnapshot = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshot, client)
|
117
|
+
self.SandboxSnapshotFromId = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotFromId, client)
|
117
118
|
self.SandboxSnapshotFs = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotFs, client)
|
118
119
|
self.SandboxSnapshotWait = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotWait, client)
|
119
120
|
self.SandboxStdinWrite = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxStdinWrite, client)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|