modal 1.1.1.dev28__py3-none-any.whl → 1.1.1.dev29__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.
Potentially problematic release.
This version of modal might be problematic. Click here for more details.
- modal/client.pyi +2 -2
- {modal-1.1.1.dev28.dist-info → modal-1.1.1.dev29.dist-info}/METADATA +1 -1
- {modal-1.1.1.dev28.dist-info → modal-1.1.1.dev29.dist-info}/RECORD +15 -15
- modal_proto/api.proto +22 -0
- modal_proto/api_grpc.py +32 -0
- modal_proto/api_pb2.py +315 -275
- modal_proto/api_pb2.pyi +71 -0
- modal_proto/api_pb2_grpc.py +66 -0
- modal_proto/api_pb2_grpc.pyi +20 -0
- modal_proto/modal_api_grpc.py +2 -0
- modal_version/__init__.py +1 -1
- {modal-1.1.1.dev28.dist-info → modal-1.1.1.dev29.dist-info}/WHEEL +0 -0
- {modal-1.1.1.dev28.dist-info → modal-1.1.1.dev29.dist-info}/entry_points.txt +0 -0
- {modal-1.1.1.dev28.dist-info → modal-1.1.1.dev29.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.1.dev28.dist-info → modal-1.1.1.dev29.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -8720,6 +8720,77 @@ class SandboxRestoreResponse(google.protobuf.message.Message):
|
|
|
8720
8720
|
|
|
8721
8721
|
global___SandboxRestoreResponse = SandboxRestoreResponse
|
|
8722
8722
|
|
|
8723
|
+
class SandboxSnapshotFsAsyncGetRequest(google.protobuf.message.Message):
|
|
8724
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8725
|
+
|
|
8726
|
+
IMAGE_ID_FIELD_NUMBER: builtins.int
|
|
8727
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
|
8728
|
+
image_id: builtins.str
|
|
8729
|
+
timeout: builtins.float
|
|
8730
|
+
def __init__(
|
|
8731
|
+
self,
|
|
8732
|
+
*,
|
|
8733
|
+
image_id: builtins.str = ...,
|
|
8734
|
+
timeout: builtins.float = ...,
|
|
8735
|
+
) -> None: ...
|
|
8736
|
+
def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id", "timeout", b"timeout"]) -> None: ...
|
|
8737
|
+
|
|
8738
|
+
global___SandboxSnapshotFsAsyncGetRequest = SandboxSnapshotFsAsyncGetRequest
|
|
8739
|
+
|
|
8740
|
+
class SandboxSnapshotFsAsyncGetResponse(google.protobuf.message.Message):
|
|
8741
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8742
|
+
|
|
8743
|
+
IMAGE_ID_FIELD_NUMBER: builtins.int
|
|
8744
|
+
RESULT_FIELD_NUMBER: builtins.int
|
|
8745
|
+
IMAGE_METADATA_FIELD_NUMBER: builtins.int
|
|
8746
|
+
image_id: builtins.str
|
|
8747
|
+
@property
|
|
8748
|
+
def result(self) -> global___GenericResult: ...
|
|
8749
|
+
@property
|
|
8750
|
+
def image_metadata(self) -> global___ImageMetadata: ...
|
|
8751
|
+
def __init__(
|
|
8752
|
+
self,
|
|
8753
|
+
*,
|
|
8754
|
+
image_id: builtins.str = ...,
|
|
8755
|
+
result: global___GenericResult | None = ...,
|
|
8756
|
+
image_metadata: global___ImageMetadata | None = ...,
|
|
8757
|
+
) -> None: ...
|
|
8758
|
+
def HasField(self, field_name: typing_extensions.Literal["image_metadata", b"image_metadata", "result", b"result"]) -> builtins.bool: ...
|
|
8759
|
+
def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id", "image_metadata", b"image_metadata", "result", b"result"]) -> None: ...
|
|
8760
|
+
|
|
8761
|
+
global___SandboxSnapshotFsAsyncGetResponse = SandboxSnapshotFsAsyncGetResponse
|
|
8762
|
+
|
|
8763
|
+
class SandboxSnapshotFsAsyncRequest(google.protobuf.message.Message):
|
|
8764
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8765
|
+
|
|
8766
|
+
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
|
8767
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
|
8768
|
+
sandbox_id: builtins.str
|
|
8769
|
+
timeout: builtins.float
|
|
8770
|
+
def __init__(
|
|
8771
|
+
self,
|
|
8772
|
+
*,
|
|
8773
|
+
sandbox_id: builtins.str = ...,
|
|
8774
|
+
timeout: builtins.float = ...,
|
|
8775
|
+
) -> None: ...
|
|
8776
|
+
def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id", "timeout", b"timeout"]) -> None: ...
|
|
8777
|
+
|
|
8778
|
+
global___SandboxSnapshotFsAsyncRequest = SandboxSnapshotFsAsyncRequest
|
|
8779
|
+
|
|
8780
|
+
class SandboxSnapshotFsAsyncResponse(google.protobuf.message.Message):
|
|
8781
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8782
|
+
|
|
8783
|
+
IMAGE_ID_FIELD_NUMBER: builtins.int
|
|
8784
|
+
image_id: builtins.str
|
|
8785
|
+
def __init__(
|
|
8786
|
+
self,
|
|
8787
|
+
*,
|
|
8788
|
+
image_id: builtins.str = ...,
|
|
8789
|
+
) -> None: ...
|
|
8790
|
+
def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id"]) -> None: ...
|
|
8791
|
+
|
|
8792
|
+
global___SandboxSnapshotFsAsyncResponse = SandboxSnapshotFsAsyncResponse
|
|
8793
|
+
|
|
8723
8794
|
class SandboxSnapshotFsRequest(google.protobuf.message.Message):
|
|
8724
8795
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8725
8796
|
|
modal_proto/api_pb2_grpc.py
CHANGED
|
@@ -605,6 +605,16 @@ class ModalClientStub(object):
|
|
|
605
605
|
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsRequest.SerializeToString,
|
|
606
606
|
response_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsResponse.FromString,
|
|
607
607
|
)
|
|
608
|
+
self.SandboxSnapshotFsAsync = channel.unary_unary(
|
|
609
|
+
'/modal.client.ModalClient/SandboxSnapshotFsAsync',
|
|
610
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncRequest.SerializeToString,
|
|
611
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncResponse.FromString,
|
|
612
|
+
)
|
|
613
|
+
self.SandboxSnapshotFsAsyncGet = channel.unary_unary(
|
|
614
|
+
'/modal.client.ModalClient/SandboxSnapshotFsAsyncGet',
|
|
615
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncGetRequest.SerializeToString,
|
|
616
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncGetResponse.FromString,
|
|
617
|
+
)
|
|
608
618
|
self.SandboxSnapshotGet = channel.unary_unary(
|
|
609
619
|
'/modal.client.ModalClient/SandboxSnapshotGet',
|
|
610
620
|
request_serializer=modal__proto_dot_api__pb2.SandboxSnapshotGetRequest.SerializeToString,
|
|
@@ -1564,6 +1574,18 @@ class ModalClientServicer(object):
|
|
|
1564
1574
|
context.set_details('Method not implemented!')
|
|
1565
1575
|
raise NotImplementedError('Method not implemented!')
|
|
1566
1576
|
|
|
1577
|
+
def SandboxSnapshotFsAsync(self, request, context):
|
|
1578
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1579
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1580
|
+
context.set_details('Method not implemented!')
|
|
1581
|
+
raise NotImplementedError('Method not implemented!')
|
|
1582
|
+
|
|
1583
|
+
def SandboxSnapshotFsAsyncGet(self, request, context):
|
|
1584
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1585
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1586
|
+
context.set_details('Method not implemented!')
|
|
1587
|
+
raise NotImplementedError('Method not implemented!')
|
|
1588
|
+
|
|
1567
1589
|
def SandboxSnapshotGet(self, request, context):
|
|
1568
1590
|
"""Missing associated documentation comment in .proto file."""
|
|
1569
1591
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -2428,6 +2450,16 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
|
2428
2450
|
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsRequest.FromString,
|
|
2429
2451
|
response_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsResponse.SerializeToString,
|
|
2430
2452
|
),
|
|
2453
|
+
'SandboxSnapshotFsAsync': grpc.unary_unary_rpc_method_handler(
|
|
2454
|
+
servicer.SandboxSnapshotFsAsync,
|
|
2455
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncRequest.FromString,
|
|
2456
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncResponse.SerializeToString,
|
|
2457
|
+
),
|
|
2458
|
+
'SandboxSnapshotFsAsyncGet': grpc.unary_unary_rpc_method_handler(
|
|
2459
|
+
servicer.SandboxSnapshotFsAsyncGet,
|
|
2460
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncGetRequest.FromString,
|
|
2461
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncGetResponse.SerializeToString,
|
|
2462
|
+
),
|
|
2431
2463
|
'SandboxSnapshotGet': grpc.unary_unary_rpc_method_handler(
|
|
2432
2464
|
servicer.SandboxSnapshotGet,
|
|
2433
2465
|
request_deserializer=modal__proto_dot_api__pb2.SandboxSnapshotGetRequest.FromString,
|
|
@@ -4664,6 +4696,40 @@ class ModalClient(object):
|
|
|
4664
4696
|
options, channel_credentials,
|
|
4665
4697
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
4666
4698
|
|
|
4699
|
+
@staticmethod
|
|
4700
|
+
def SandboxSnapshotFsAsync(request,
|
|
4701
|
+
target,
|
|
4702
|
+
options=(),
|
|
4703
|
+
channel_credentials=None,
|
|
4704
|
+
call_credentials=None,
|
|
4705
|
+
insecure=False,
|
|
4706
|
+
compression=None,
|
|
4707
|
+
wait_for_ready=None,
|
|
4708
|
+
timeout=None,
|
|
4709
|
+
metadata=None):
|
|
4710
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxSnapshotFsAsync',
|
|
4711
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncRequest.SerializeToString,
|
|
4712
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncResponse.FromString,
|
|
4713
|
+
options, channel_credentials,
|
|
4714
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
4715
|
+
|
|
4716
|
+
@staticmethod
|
|
4717
|
+
def SandboxSnapshotFsAsyncGet(request,
|
|
4718
|
+
target,
|
|
4719
|
+
options=(),
|
|
4720
|
+
channel_credentials=None,
|
|
4721
|
+
call_credentials=None,
|
|
4722
|
+
insecure=False,
|
|
4723
|
+
compression=None,
|
|
4724
|
+
wait_for_ready=None,
|
|
4725
|
+
timeout=None,
|
|
4726
|
+
metadata=None):
|
|
4727
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxSnapshotFsAsyncGet',
|
|
4728
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncGetRequest.SerializeToString,
|
|
4729
|
+
modal__proto_dot_api__pb2.SandboxSnapshotFsAsyncGetResponse.FromString,
|
|
4730
|
+
options, channel_credentials,
|
|
4731
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
4732
|
+
|
|
4667
4733
|
@staticmethod
|
|
4668
4734
|
def SandboxSnapshotGet(request,
|
|
4669
4735
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
|
@@ -509,6 +509,14 @@ class ModalClientStub:
|
|
|
509
509
|
modal_proto.api_pb2.SandboxSnapshotFsRequest,
|
|
510
510
|
modal_proto.api_pb2.SandboxSnapshotFsResponse,
|
|
511
511
|
]
|
|
512
|
+
SandboxSnapshotFsAsync: grpc.UnaryUnaryMultiCallable[
|
|
513
|
+
modal_proto.api_pb2.SandboxSnapshotFsAsyncRequest,
|
|
514
|
+
modal_proto.api_pb2.SandboxSnapshotFsAsyncResponse,
|
|
515
|
+
]
|
|
516
|
+
SandboxSnapshotFsAsyncGet: grpc.UnaryUnaryMultiCallable[
|
|
517
|
+
modal_proto.api_pb2.SandboxSnapshotFsAsyncGetRequest,
|
|
518
|
+
modal_proto.api_pb2.SandboxSnapshotFsAsyncGetResponse,
|
|
519
|
+
]
|
|
512
520
|
SandboxSnapshotGet: grpc.UnaryUnaryMultiCallable[
|
|
513
521
|
modal_proto.api_pb2.SandboxSnapshotGetRequest,
|
|
514
522
|
modal_proto.api_pb2.SandboxSnapshotGetResponse,
|
|
@@ -1430,6 +1438,18 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
|
1430
1438
|
context: grpc.ServicerContext,
|
|
1431
1439
|
) -> modal_proto.api_pb2.SandboxSnapshotFsResponse: ...
|
|
1432
1440
|
@abc.abstractmethod
|
|
1441
|
+
def SandboxSnapshotFsAsync(
|
|
1442
|
+
self,
|
|
1443
|
+
request: modal_proto.api_pb2.SandboxSnapshotFsAsyncRequest,
|
|
1444
|
+
context: grpc.ServicerContext,
|
|
1445
|
+
) -> modal_proto.api_pb2.SandboxSnapshotFsAsyncResponse: ...
|
|
1446
|
+
@abc.abstractmethod
|
|
1447
|
+
def SandboxSnapshotFsAsyncGet(
|
|
1448
|
+
self,
|
|
1449
|
+
request: modal_proto.api_pb2.SandboxSnapshotFsAsyncGetRequest,
|
|
1450
|
+
context: grpc.ServicerContext,
|
|
1451
|
+
) -> modal_proto.api_pb2.SandboxSnapshotFsAsyncGetResponse: ...
|
|
1452
|
+
@abc.abstractmethod
|
|
1433
1453
|
def SandboxSnapshotGet(
|
|
1434
1454
|
self,
|
|
1435
1455
|
request: modal_proto.api_pb2.SandboxSnapshotGetRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
|
@@ -136,6 +136,8 @@ class ModalClientModal:
|
|
|
136
136
|
self.SandboxRestore = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxRestore, client, server_url)
|
|
137
137
|
self.SandboxSnapshot = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshot, client, server_url)
|
|
138
138
|
self.SandboxSnapshotFs = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotFs, client, server_url)
|
|
139
|
+
self.SandboxSnapshotFsAsync = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotFsAsync, client, server_url)
|
|
140
|
+
self.SandboxSnapshotFsAsyncGet = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotFsAsyncGet, client, server_url)
|
|
139
141
|
self.SandboxSnapshotGet = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotGet, client, server_url)
|
|
140
142
|
self.SandboxSnapshotWait = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxSnapshotWait, client, server_url)
|
|
141
143
|
self.SandboxStdinWrite = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxStdinWrite, client, server_url)
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|