modal 0.74.41__py3-none-any.whl → 0.74.43__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/_container_entrypoint.py +1 -9
- modal/_runtime/user_code_imports.py +43 -30
- modal/client.pyi +2 -2
- {modal-0.74.41.dist-info → modal-0.74.43.dist-info}/METADATA +1 -1
- {modal-0.74.41.dist-info → modal-0.74.43.dist-info}/RECORD +17 -17
- modal_proto/api.proto +15 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +133 -113
- modal_proto/api_pb2.pyi +51 -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.74.41.dist-info → modal-0.74.43.dist-info}/WHEEL +0 -0
- {modal-0.74.41.dist-info → modal-0.74.43.dist-info}/entry_points.txt +0 -0
- {modal-0.74.41.dist-info → modal-0.74.43.dist-info}/licenses/LICENSE +0 -0
- {modal-0.74.41.dist-info → modal-0.74.43.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -9417,6 +9417,57 @@ class VolumeDeleteRequest(google.protobuf.message.Message):
|
|
9417
9417
|
|
9418
9418
|
global___VolumeDeleteRequest = VolumeDeleteRequest
|
9419
9419
|
|
9420
|
+
class VolumeGetFile2Request(google.protobuf.message.Message):
|
9421
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9422
|
+
|
9423
|
+
VOLUME_ID_FIELD_NUMBER: builtins.int
|
9424
|
+
PATH_FIELD_NUMBER: builtins.int
|
9425
|
+
START_FIELD_NUMBER: builtins.int
|
9426
|
+
LEN_FIELD_NUMBER: builtins.int
|
9427
|
+
volume_id: builtins.str
|
9428
|
+
path: builtins.str
|
9429
|
+
start: builtins.int
|
9430
|
+
len: builtins.int
|
9431
|
+
"""0 is interpreted as 'read to end'"""
|
9432
|
+
def __init__(
|
9433
|
+
self,
|
9434
|
+
*,
|
9435
|
+
volume_id: builtins.str = ...,
|
9436
|
+
path: builtins.str = ...,
|
9437
|
+
start: builtins.int = ...,
|
9438
|
+
len: builtins.int = ...,
|
9439
|
+
) -> None: ...
|
9440
|
+
def ClearField(self, field_name: typing_extensions.Literal["len", b"len", "path", b"path", "start", b"start", "volume_id", b"volume_id"]) -> None: ...
|
9441
|
+
|
9442
|
+
global___VolumeGetFile2Request = VolumeGetFile2Request
|
9443
|
+
|
9444
|
+
class VolumeGetFile2Response(google.protobuf.message.Message):
|
9445
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9446
|
+
|
9447
|
+
GET_URLS_FIELD_NUMBER: builtins.int
|
9448
|
+
SIZE_FIELD_NUMBER: builtins.int
|
9449
|
+
START_FIELD_NUMBER: builtins.int
|
9450
|
+
LEN_FIELD_NUMBER: builtins.int
|
9451
|
+
@property
|
9452
|
+
def get_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
9453
|
+
size: builtins.int
|
9454
|
+
"""total file size"""
|
9455
|
+
start: builtins.int
|
9456
|
+
"""file position of first byte returned"""
|
9457
|
+
len: builtins.int
|
9458
|
+
"""number of bytes returned"""
|
9459
|
+
def __init__(
|
9460
|
+
self,
|
9461
|
+
*,
|
9462
|
+
get_urls: collections.abc.Iterable[builtins.str] | None = ...,
|
9463
|
+
size: builtins.int = ...,
|
9464
|
+
start: builtins.int = ...,
|
9465
|
+
len: builtins.int = ...,
|
9466
|
+
) -> None: ...
|
9467
|
+
def ClearField(self, field_name: typing_extensions.Literal["get_urls", b"get_urls", "len", b"len", "size", b"size", "start", b"start"]) -> None: ...
|
9468
|
+
|
9469
|
+
global___VolumeGetFile2Response = VolumeGetFile2Response
|
9470
|
+
|
9420
9471
|
class VolumeGetFileRequest(google.protobuf.message.Message):
|
9421
9472
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9422
9473
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -705,6 +705,11 @@ class ModalClientStub(object):
|
|
705
705
|
request_serializer=modal__proto_dot_api__pb2.VolumeGetFileRequest.SerializeToString,
|
706
706
|
response_deserializer=modal__proto_dot_api__pb2.VolumeGetFileResponse.FromString,
|
707
707
|
)
|
708
|
+
self.VolumeGetFile2 = channel.unary_unary(
|
709
|
+
'/modal.client.ModalClient/VolumeGetFile2',
|
710
|
+
request_serializer=modal__proto_dot_api__pb2.VolumeGetFile2Request.SerializeToString,
|
711
|
+
response_deserializer=modal__proto_dot_api__pb2.VolumeGetFile2Response.FromString,
|
712
|
+
)
|
708
713
|
self.VolumeGetOrCreate = channel.unary_unary(
|
709
714
|
'/modal.client.ModalClient/VolumeGetOrCreate',
|
710
715
|
request_serializer=modal__proto_dot_api__pb2.VolumeGetOrCreateRequest.SerializeToString,
|
@@ -1617,6 +1622,12 @@ class ModalClientServicer(object):
|
|
1617
1622
|
context.set_details('Method not implemented!')
|
1618
1623
|
raise NotImplementedError('Method not implemented!')
|
1619
1624
|
|
1625
|
+
def VolumeGetFile2(self, request, context):
|
1626
|
+
"""Missing associated documentation comment in .proto file."""
|
1627
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1628
|
+
context.set_details('Method not implemented!')
|
1629
|
+
raise NotImplementedError('Method not implemented!')
|
1630
|
+
|
1620
1631
|
def VolumeGetOrCreate(self, request, context):
|
1621
1632
|
"""Missing associated documentation comment in .proto file."""
|
1622
1633
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2371,6 +2382,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2371
2382
|
request_deserializer=modal__proto_dot_api__pb2.VolumeGetFileRequest.FromString,
|
2372
2383
|
response_serializer=modal__proto_dot_api__pb2.VolumeGetFileResponse.SerializeToString,
|
2373
2384
|
),
|
2385
|
+
'VolumeGetFile2': grpc.unary_unary_rpc_method_handler(
|
2386
|
+
servicer.VolumeGetFile2,
|
2387
|
+
request_deserializer=modal__proto_dot_api__pb2.VolumeGetFile2Request.FromString,
|
2388
|
+
response_serializer=modal__proto_dot_api__pb2.VolumeGetFile2Response.SerializeToString,
|
2389
|
+
),
|
2374
2390
|
'VolumeGetOrCreate': grpc.unary_unary_rpc_method_handler(
|
2375
2391
|
servicer.VolumeGetOrCreate,
|
2376
2392
|
request_deserializer=modal__proto_dot_api__pb2.VolumeGetOrCreateRequest.FromString,
|
@@ -4777,6 +4793,23 @@ class ModalClient(object):
|
|
4777
4793
|
options, channel_credentials,
|
4778
4794
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4779
4795
|
|
4796
|
+
@staticmethod
|
4797
|
+
def VolumeGetFile2(request,
|
4798
|
+
target,
|
4799
|
+
options=(),
|
4800
|
+
channel_credentials=None,
|
4801
|
+
call_credentials=None,
|
4802
|
+
insecure=False,
|
4803
|
+
compression=None,
|
4804
|
+
wait_for_ready=None,
|
4805
|
+
timeout=None,
|
4806
|
+
metadata=None):
|
4807
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/VolumeGetFile2',
|
4808
|
+
modal__proto_dot_api__pb2.VolumeGetFile2Request.SerializeToString,
|
4809
|
+
modal__proto_dot_api__pb2.VolumeGetFile2Response.FromString,
|
4810
|
+
options, channel_credentials,
|
4811
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4812
|
+
|
4780
4813
|
@staticmethod
|
4781
4814
|
def VolumeGetOrCreate(request,
|
4782
4815
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -592,6 +592,10 @@ class ModalClientStub:
|
|
592
592
|
modal_proto.api_pb2.VolumeGetFileRequest,
|
593
593
|
modal_proto.api_pb2.VolumeGetFileResponse,
|
594
594
|
]
|
595
|
+
VolumeGetFile2: grpc.UnaryUnaryMultiCallable[
|
596
|
+
modal_proto.api_pb2.VolumeGetFile2Request,
|
597
|
+
modal_proto.api_pb2.VolumeGetFile2Response,
|
598
|
+
]
|
595
599
|
VolumeGetOrCreate: grpc.UnaryUnaryMultiCallable[
|
596
600
|
modal_proto.api_pb2.VolumeGetOrCreateRequest,
|
597
601
|
modal_proto.api_pb2.VolumeGetOrCreateResponse,
|
@@ -1494,6 +1498,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1494
1498
|
context: grpc.ServicerContext,
|
1495
1499
|
) -> modal_proto.api_pb2.VolumeGetFileResponse: ...
|
1496
1500
|
@abc.abstractmethod
|
1501
|
+
def VolumeGetFile2(
|
1502
|
+
self,
|
1503
|
+
request: modal_proto.api_pb2.VolumeGetFile2Request,
|
1504
|
+
context: grpc.ServicerContext,
|
1505
|
+
) -> modal_proto.api_pb2.VolumeGetFile2Response: ...
|
1506
|
+
@abc.abstractmethod
|
1497
1507
|
def VolumeGetOrCreate(
|
1498
1508
|
self,
|
1499
1509
|
request: modal_proto.api_pb2.VolumeGetOrCreateRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -150,6 +150,7 @@ class ModalClientModal:
|
|
150
150
|
self.VolumeCopyFiles = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeCopyFiles, client)
|
151
151
|
self.VolumeDelete = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeDelete, client)
|
152
152
|
self.VolumeGetFile = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeGetFile, client)
|
153
|
+
self.VolumeGetFile2 = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeGetFile2, client)
|
153
154
|
self.VolumeGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeGetOrCreate, client)
|
154
155
|
self.VolumeHeartbeat = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeHeartbeat, client)
|
155
156
|
self.VolumeList = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeList, client)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|