modal 0.67.16__py3-none-any.whl → 0.67.20__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/_utils/async_utils.py +6 -3
- modal/_utils/blob_utils.py +18 -4
- modal/client.pyi +2 -2
- modal/io_streams.py +5 -0
- modal/io_streams.pyi +3 -0
- {modal-0.67.16.dist-info → modal-0.67.20.dist-info}/METADATA +2 -2
- {modal-0.67.16.dist-info → modal-0.67.20.dist-info}/RECORD +19 -19
- modal_proto/api.proto +13 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +241 -221
- modal_proto/api_pb2.pyi +41 -0
- 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.67.16.dist-info → modal-0.67.20.dist-info}/LICENSE +0 -0
- {modal-0.67.16.dist-info → modal-0.67.20.dist-info}/WHEEL +0 -0
- {modal-0.67.16.dist-info → modal-0.67.20.dist-info}/entry_points.txt +0 -0
- {modal-0.67.16.dist-info → modal-0.67.20.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -6852,6 +6852,47 @@ class SandboxListResponse(google.protobuf.message.Message):
|
|
6852
6852
|
|
6853
6853
|
global___SandboxListResponse = SandboxListResponse
|
6854
6854
|
|
6855
|
+
class SandboxSnapshotFsRequest(google.protobuf.message.Message):
|
6856
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6857
|
+
|
6858
|
+
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
6859
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
6860
|
+
sandbox_id: builtins.str
|
6861
|
+
timeout: builtins.float
|
6862
|
+
def __init__(
|
6863
|
+
self,
|
6864
|
+
*,
|
6865
|
+
sandbox_id: builtins.str = ...,
|
6866
|
+
timeout: builtins.float = ...,
|
6867
|
+
) -> None: ...
|
6868
|
+
def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id", "timeout", b"timeout"]) -> None: ...
|
6869
|
+
|
6870
|
+
global___SandboxSnapshotFsRequest = SandboxSnapshotFsRequest
|
6871
|
+
|
6872
|
+
class SandboxSnapshotFsResponse(google.protobuf.message.Message):
|
6873
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6874
|
+
|
6875
|
+
IMAGE_ID_FIELD_NUMBER: builtins.int
|
6876
|
+
RESULT_FIELD_NUMBER: builtins.int
|
6877
|
+
IMAGE_METADATA_FIELD_NUMBER: builtins.int
|
6878
|
+
image_id: builtins.str
|
6879
|
+
@property
|
6880
|
+
def result(self) -> global___GenericResult: ...
|
6881
|
+
@property
|
6882
|
+
def image_metadata(self) -> global___ImageMetadata:
|
6883
|
+
"""Metadata may be empty since we may skip it for performance reasons."""
|
6884
|
+
def __init__(
|
6885
|
+
self,
|
6886
|
+
*,
|
6887
|
+
image_id: builtins.str = ...,
|
6888
|
+
result: global___GenericResult | None = ...,
|
6889
|
+
image_metadata: global___ImageMetadata | None = ...,
|
6890
|
+
) -> None: ...
|
6891
|
+
def HasField(self, field_name: typing_extensions.Literal["image_metadata", b"image_metadata", "result", b"result"]) -> builtins.bool: ...
|
6892
|
+
def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id", "image_metadata", b"image_metadata", "result", b"result"]) -> None: ...
|
6893
|
+
|
6894
|
+
global___SandboxSnapshotFsResponse = SandboxSnapshotFsResponse
|
6895
|
+
|
6855
6896
|
class SandboxStdinWriteRequest(google.protobuf.message.Message):
|
6856
6897
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6857
6898
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -480,6 +480,11 @@ class ModalClientStub(object):
|
|
480
480
|
request_serializer=modal__proto_dot_api__pb2.SandboxListRequest.SerializeToString,
|
481
481
|
response_deserializer=modal__proto_dot_api__pb2.SandboxListResponse.FromString,
|
482
482
|
)
|
483
|
+
self.SandboxSnapshotFs = channel.unary_unary(
|
484
|
+
'/modal.client.ModalClient/SandboxSnapshotFs',
|
485
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsRequest.SerializeToString,
|
486
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsResponse.FromString,
|
487
|
+
)
|
483
488
|
self.SandboxStdinWrite = channel.unary_unary(
|
484
489
|
'/modal.client.ModalClient/SandboxStdinWrite',
|
485
490
|
request_serializer=modal__proto_dot_api__pb2.SandboxStdinWriteRequest.SerializeToString,
|
@@ -1241,6 +1246,12 @@ class ModalClientServicer(object):
|
|
1241
1246
|
context.set_details('Method not implemented!')
|
1242
1247
|
raise NotImplementedError('Method not implemented!')
|
1243
1248
|
|
1249
|
+
def SandboxSnapshotFs(self, request, context):
|
1250
|
+
"""Missing associated documentation comment in .proto file."""
|
1251
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1252
|
+
context.set_details('Method not implemented!')
|
1253
|
+
raise NotImplementedError('Method not implemented!')
|
1254
|
+
|
1244
1255
|
def SandboxStdinWrite(self, request, context):
|
1245
1256
|
"""Missing associated documentation comment in .proto file."""
|
1246
1257
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -1932,6 +1943,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
1932
1943
|
request_deserializer=modal__proto_dot_api__pb2.SandboxListRequest.FromString,
|
1933
1944
|
response_serializer=modal__proto_dot_api__pb2.SandboxListResponse.SerializeToString,
|
1934
1945
|
),
|
1946
|
+
'SandboxSnapshotFs': grpc.unary_unary_rpc_method_handler(
|
1947
|
+
servicer.SandboxSnapshotFs,
|
1948
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsRequest.FromString,
|
1949
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsResponse.SerializeToString,
|
1950
|
+
),
|
1935
1951
|
'SandboxStdinWrite': grpc.unary_unary_rpc_method_handler(
|
1936
1952
|
servicer.SandboxStdinWrite,
|
1937
1953
|
request_deserializer=modal__proto_dot_api__pb2.SandboxStdinWriteRequest.FromString,
|
@@ -3703,6 +3719,23 @@ class ModalClient(object):
|
|
3703
3719
|
options, channel_credentials,
|
3704
3720
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3705
3721
|
|
3722
|
+
@staticmethod
|
3723
|
+
def SandboxSnapshotFs(request,
|
3724
|
+
target,
|
3725
|
+
options=(),
|
3726
|
+
channel_credentials=None,
|
3727
|
+
call_credentials=None,
|
3728
|
+
insecure=False,
|
3729
|
+
compression=None,
|
3730
|
+
wait_for_ready=None,
|
3731
|
+
timeout=None,
|
3732
|
+
metadata=None):
|
3733
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxSnapshotFs',
|
3734
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFsRequest.SerializeToString,
|
3735
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFsResponse.FromString,
|
3736
|
+
options, channel_credentials,
|
3737
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3738
|
+
|
3706
3739
|
@staticmethod
|
3707
3740
|
def SandboxStdinWrite(request,
|
3708
3741
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -400,6 +400,10 @@ class ModalClientStub:
|
|
400
400
|
modal_proto.api_pb2.SandboxListRequest,
|
401
401
|
modal_proto.api_pb2.SandboxListResponse,
|
402
402
|
]
|
403
|
+
SandboxSnapshotFs: grpc.UnaryUnaryMultiCallable[
|
404
|
+
modal_proto.api_pb2.SandboxSnapshotFsRequest,
|
405
|
+
modal_proto.api_pb2.SandboxSnapshotFsResponse,
|
406
|
+
]
|
403
407
|
SandboxStdinWrite: grpc.UnaryUnaryMultiCallable[
|
404
408
|
modal_proto.api_pb2.SandboxStdinWriteRequest,
|
405
409
|
modal_proto.api_pb2.SandboxStdinWriteResponse,
|
@@ -1130,6 +1134,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1130
1134
|
context: grpc.ServicerContext,
|
1131
1135
|
) -> modal_proto.api_pb2.SandboxListResponse: ...
|
1132
1136
|
@abc.abstractmethod
|
1137
|
+
def SandboxSnapshotFs(
|
1138
|
+
self,
|
1139
|
+
request: modal_proto.api_pb2.SandboxSnapshotFsRequest,
|
1140
|
+
context: grpc.ServicerContext,
|
1141
|
+
) -> modal_proto.api_pb2.SandboxSnapshotFsResponse: ...
|
1142
|
+
@abc.abstractmethod
|
1133
1143
|
def SandboxStdinWrite(
|
1134
1144
|
self,
|
1135
1145
|
request: modal_proto.api_pb2.SandboxStdinWriteRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -105,6 +105,7 @@ class ModalClientModal:
|
|
105
105
|
self.SandboxGetTaskId = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetTaskId, client)
|
106
106
|
self.SandboxGetTunnels = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetTunnels, client)
|
107
107
|
self.SandboxList = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxList, client)
|
108
|
+
self.SandboxSnapshotFs = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotFs, client)
|
108
109
|
self.SandboxStdinWrite = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxStdinWrite, client)
|
109
110
|
self.SandboxTagsSet = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxTagsSet, client)
|
110
111
|
self.SandboxTerminate = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxTerminate, client)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|