modal 0.72.38__py3-none-any.whl → 0.72.40__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/_object.py +27 -8
- modal/app.pyi +18 -14
- modal/client.pyi +16 -14
- modal/cls.pyi +6 -4
- modal/container_process.pyi +8 -6
- modal/dict.pyi +30 -28
- modal/file_io.pyi +30 -28
- modal/functions.py +2 -1
- modal/functions.pyi +48 -46
- modal/image.pyi +26 -20
- modal/io_streams.pyi +14 -12
- modal/mount.pyi +26 -24
- modal/network_file_system.pyi +25 -23
- modal/object.pyi +33 -25
- modal/parallel_map.pyi +10 -7
- modal/partial_function.pyi +43 -29
- modal/queue.pyi +24 -22
- modal/sandbox.py +2 -1
- modal/sandbox.pyi +28 -26
- modal/token_flow.pyi +6 -4
- modal/volume.pyi +34 -32
- {modal-0.72.38.dist-info → modal-0.72.40.dist-info}/METADATA +2 -2
- {modal-0.72.38.dist-info → modal-0.72.40.dist-info}/RECORD +35 -35
- modal_proto/api.proto +10 -3
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +262 -244
- modal_proto/api_pb2.pyi +29 -7
- 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.38.dist-info → modal-0.72.40.dist-info}/LICENSE +0 -0
- {modal-0.72.38.dist-info → modal-0.72.40.dist-info}/WHEEL +0 -0
- {modal-0.72.38.dist-info → modal-0.72.40.dist-info}/entry_points.txt +0 -0
- {modal-0.72.38.dist-info → modal-0.72.40.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -7426,20 +7426,14 @@ global___SandboxListResponse = SandboxListResponse
|
|
7426
7426
|
class SandboxRestoreRequest(google.protobuf.message.Message):
|
7427
7427
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7428
7428
|
|
7429
|
-
APP_ID_FIELD_NUMBER: builtins.int
|
7430
7429
|
SNAPSHOT_ID_FIELD_NUMBER: builtins.int
|
7431
|
-
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
7432
|
-
app_id: builtins.str
|
7433
7430
|
snapshot_id: builtins.str
|
7434
|
-
environment_name: builtins.str
|
7435
7431
|
def __init__(
|
7436
7432
|
self,
|
7437
7433
|
*,
|
7438
|
-
app_id: builtins.str = ...,
|
7439
7434
|
snapshot_id: builtins.str = ...,
|
7440
|
-
environment_name: builtins.str = ...,
|
7441
7435
|
) -> None: ...
|
7442
|
-
def ClearField(self, field_name: typing_extensions.Literal["
|
7436
|
+
def ClearField(self, field_name: typing_extensions.Literal["snapshot_id", b"snapshot_id"]) -> None: ...
|
7443
7437
|
|
7444
7438
|
global___SandboxRestoreRequest = SandboxRestoreRequest
|
7445
7439
|
|
@@ -7457,6 +7451,34 @@ class SandboxRestoreResponse(google.protobuf.message.Message):
|
|
7457
7451
|
|
7458
7452
|
global___SandboxRestoreResponse = SandboxRestoreResponse
|
7459
7453
|
|
7454
|
+
class SandboxSnapshotFromIdRequest(google.protobuf.message.Message):
|
7455
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7456
|
+
|
7457
|
+
SNAPSHOT_ID_FIELD_NUMBER: builtins.int
|
7458
|
+
snapshot_id: builtins.str
|
7459
|
+
def __init__(
|
7460
|
+
self,
|
7461
|
+
*,
|
7462
|
+
snapshot_id: builtins.str = ...,
|
7463
|
+
) -> None: ...
|
7464
|
+
def ClearField(self, field_name: typing_extensions.Literal["snapshot_id", b"snapshot_id"]) -> None: ...
|
7465
|
+
|
7466
|
+
global___SandboxSnapshotFromIdRequest = SandboxSnapshotFromIdRequest
|
7467
|
+
|
7468
|
+
class SandboxSnapshotFromIdResponse(google.protobuf.message.Message):
|
7469
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7470
|
+
|
7471
|
+
SNAPSHOT_ID_FIELD_NUMBER: builtins.int
|
7472
|
+
snapshot_id: builtins.str
|
7473
|
+
def __init__(
|
7474
|
+
self,
|
7475
|
+
*,
|
7476
|
+
snapshot_id: builtins.str = ...,
|
7477
|
+
) -> None: ...
|
7478
|
+
def ClearField(self, field_name: typing_extensions.Literal["snapshot_id", b"snapshot_id"]) -> None: ...
|
7479
|
+
|
7480
|
+
global___SandboxSnapshotFromIdResponse = SandboxSnapshotFromIdResponse
|
7481
|
+
|
7460
7482
|
class SandboxSnapshotFsRequest(google.protobuf.message.Message):
|
7461
7483
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
7462
7484
|
|
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
|