modal 0.76.4.dev1__py3-none-any.whl → 0.76.5.dev2__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 +7 -7
- modal/parallel_map.py +98 -88
- modal/parallel_map.pyi +14 -7
- {modal-0.76.4.dev1.dist-info → modal-0.76.5.dev2.dist-info}/METADATA +1 -1
- {modal-0.76.4.dev1.dist-info → modal-0.76.5.dev2.dist-info}/RECORD +18 -18
- modal_proto/api.proto +10 -2
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +131 -121
- modal_proto/api_pb2.pyi +24 -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/__init__.py +1 -1
- {modal-0.76.4.dev1.dist-info → modal-0.76.5.dev2.dist-info}/WHEEL +0 -0
- {modal-0.76.4.dev1.dist-info → modal-0.76.5.dev2.dist-info}/entry_points.txt +0 -0
- {modal-0.76.4.dev1.dist-info → modal-0.76.5.dev2.dist-info}/licenses/LICENSE +0 -0
- {modal-0.76.4.dev1.dist-info → modal-0.76.5.dev2.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -9450,6 +9450,30 @@ class VolumeCommitResponse(google.protobuf.message.Message):
|
|
9450
9450
|
|
9451
9451
|
global___VolumeCommitResponse = VolumeCommitResponse
|
9452
9452
|
|
9453
|
+
class VolumeCopyFiles2Request(google.protobuf.message.Message):
|
9454
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9455
|
+
|
9456
|
+
VOLUME_ID_FIELD_NUMBER: builtins.int
|
9457
|
+
SRC_PATHS_FIELD_NUMBER: builtins.int
|
9458
|
+
DST_PATH_FIELD_NUMBER: builtins.int
|
9459
|
+
RECURSIVE_FIELD_NUMBER: builtins.int
|
9460
|
+
volume_id: builtins.str
|
9461
|
+
@property
|
9462
|
+
def src_paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
9463
|
+
dst_path: builtins.str
|
9464
|
+
recursive: builtins.bool
|
9465
|
+
def __init__(
|
9466
|
+
self,
|
9467
|
+
*,
|
9468
|
+
volume_id: builtins.str = ...,
|
9469
|
+
src_paths: collections.abc.Iterable[builtins.str] | None = ...,
|
9470
|
+
dst_path: builtins.str = ...,
|
9471
|
+
recursive: builtins.bool = ...,
|
9472
|
+
) -> None: ...
|
9473
|
+
def ClearField(self, field_name: typing_extensions.Literal["dst_path", b"dst_path", "recursive", b"recursive", "src_paths", b"src_paths", "volume_id", b"volume_id"]) -> None: ...
|
9474
|
+
|
9475
|
+
global___VolumeCopyFiles2Request = VolumeCopyFiles2Request
|
9476
|
+
|
9453
9477
|
class VolumeCopyFilesRequest(google.protobuf.message.Message):
|
9454
9478
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9455
9479
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -700,6 +700,11 @@ class ModalClientStub(object):
|
|
700
700
|
request_serializer=modal__proto_dot_api__pb2.VolumeCopyFilesRequest.SerializeToString,
|
701
701
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
702
702
|
)
|
703
|
+
self.VolumeCopyFiles2 = channel.unary_unary(
|
704
|
+
'/modal.client.ModalClient/VolumeCopyFiles2',
|
705
|
+
request_serializer=modal__proto_dot_api__pb2.VolumeCopyFiles2Request.SerializeToString,
|
706
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
707
|
+
)
|
703
708
|
self.VolumeDelete = channel.unary_unary(
|
704
709
|
'/modal.client.ModalClient/VolumeDelete',
|
705
710
|
request_serializer=modal__proto_dot_api__pb2.VolumeDeleteRequest.SerializeToString,
|
@@ -1621,6 +1626,12 @@ class ModalClientServicer(object):
|
|
1621
1626
|
context.set_details('Method not implemented!')
|
1622
1627
|
raise NotImplementedError('Method not implemented!')
|
1623
1628
|
|
1629
|
+
def VolumeCopyFiles2(self, request, context):
|
1630
|
+
"""Missing associated documentation comment in .proto file."""
|
1631
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1632
|
+
context.set_details('Method not implemented!')
|
1633
|
+
raise NotImplementedError('Method not implemented!')
|
1634
|
+
|
1624
1635
|
def VolumeDelete(self, request, context):
|
1625
1636
|
"""Missing associated documentation comment in .proto file."""
|
1626
1637
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2388,6 +2399,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2388
2399
|
request_deserializer=modal__proto_dot_api__pb2.VolumeCopyFilesRequest.FromString,
|
2389
2400
|
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2390
2401
|
),
|
2402
|
+
'VolumeCopyFiles2': grpc.unary_unary_rpc_method_handler(
|
2403
|
+
servicer.VolumeCopyFiles2,
|
2404
|
+
request_deserializer=modal__proto_dot_api__pb2.VolumeCopyFiles2Request.FromString,
|
2405
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2406
|
+
),
|
2391
2407
|
'VolumeDelete': grpc.unary_unary_rpc_method_handler(
|
2392
2408
|
servicer.VolumeDelete,
|
2393
2409
|
request_deserializer=modal__proto_dot_api__pb2.VolumeDeleteRequest.FromString,
|
@@ -4792,6 +4808,23 @@ class ModalClient(object):
|
|
4792
4808
|
options, channel_credentials,
|
4793
4809
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4794
4810
|
|
4811
|
+
@staticmethod
|
4812
|
+
def VolumeCopyFiles2(request,
|
4813
|
+
target,
|
4814
|
+
options=(),
|
4815
|
+
channel_credentials=None,
|
4816
|
+
call_credentials=None,
|
4817
|
+
insecure=False,
|
4818
|
+
compression=None,
|
4819
|
+
wait_for_ready=None,
|
4820
|
+
timeout=None,
|
4821
|
+
metadata=None):
|
4822
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/VolumeCopyFiles2',
|
4823
|
+
modal__proto_dot_api__pb2.VolumeCopyFiles2Request.SerializeToString,
|
4824
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
4825
|
+
options, channel_credentials,
|
4826
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4827
|
+
|
4795
4828
|
@staticmethod
|
4796
4829
|
def VolumeDelete(request,
|
4797
4830
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -588,6 +588,10 @@ class ModalClientStub:
|
|
588
588
|
modal_proto.api_pb2.VolumeCopyFilesRequest,
|
589
589
|
google.protobuf.empty_pb2.Empty,
|
590
590
|
]
|
591
|
+
VolumeCopyFiles2: grpc.UnaryUnaryMultiCallable[
|
592
|
+
modal_proto.api_pb2.VolumeCopyFiles2Request,
|
593
|
+
google.protobuf.empty_pb2.Empty,
|
594
|
+
]
|
591
595
|
VolumeDelete: grpc.UnaryUnaryMultiCallable[
|
592
596
|
modal_proto.api_pb2.VolumeDeleteRequest,
|
593
597
|
google.protobuf.empty_pb2.Empty,
|
@@ -1496,6 +1500,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1496
1500
|
context: grpc.ServicerContext,
|
1497
1501
|
) -> google.protobuf.empty_pb2.Empty: ...
|
1498
1502
|
@abc.abstractmethod
|
1503
|
+
def VolumeCopyFiles2(
|
1504
|
+
self,
|
1505
|
+
request: modal_proto.api_pb2.VolumeCopyFiles2Request,
|
1506
|
+
context: grpc.ServicerContext,
|
1507
|
+
) -> google.protobuf.empty_pb2.Empty: ...
|
1508
|
+
@abc.abstractmethod
|
1499
1509
|
def VolumeDelete(
|
1500
1510
|
self,
|
1501
1511
|
request: modal_proto.api_pb2.VolumeDeleteRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -155,6 +155,7 @@ class ModalClientModal:
|
|
155
155
|
self.TunnelStop = modal.client.UnaryUnaryWrapper(grpclib_stub.TunnelStop, client, server_url)
|
156
156
|
self.VolumeCommit = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeCommit, client, server_url)
|
157
157
|
self.VolumeCopyFiles = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeCopyFiles, client, server_url)
|
158
|
+
self.VolumeCopyFiles2 = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeCopyFiles2, client, server_url)
|
158
159
|
self.VolumeDelete = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeDelete, client, server_url)
|
159
160
|
self.VolumeGetFile = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeGetFile, client, server_url)
|
160
161
|
self.VolumeGetFile2 = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeGetFile2, client, server_url)
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|