modal 1.0.0.dev13__py3-none-any.whl → 1.0.0.dev15__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/_functions.py +3 -35
- modal/client.pyi +2 -2
- modal/functions.pyi +2 -22
- {modal-1.0.0.dev13.dist-info → modal-1.0.0.dev15.dist-info}/METADATA +1 -1
- {modal-1.0.0.dev13.dist-info → modal-1.0.0.dev15.dist-info}/RECORD +17 -17
- modal_proto/api.proto +19 -0
- modal_proto/api_grpc.py +32 -0
- modal_proto/api_pb2.py +135 -103
- modal_proto/api_pb2.pyi +60 -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.0.0.dev13.dist-info → modal-1.0.0.dev15.dist-info}/WHEEL +0 -0
- {modal-1.0.0.dev13.dist-info → modal-1.0.0.dev15.dist-info}/entry_points.txt +0 -0
- {modal-1.0.0.dev13.dist-info → modal-1.0.0.dev15.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.0.dev13.dist-info → modal-1.0.0.dev15.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -9704,6 +9704,46 @@ class VolumeHeartbeatRequest(google.protobuf.message.Message):
|
|
9704
9704
|
|
9705
9705
|
global___VolumeHeartbeatRequest = VolumeHeartbeatRequest
|
9706
9706
|
|
9707
|
+
class VolumeListFiles2Request(google.protobuf.message.Message):
|
9708
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9709
|
+
|
9710
|
+
VOLUME_ID_FIELD_NUMBER: builtins.int
|
9711
|
+
PATH_FIELD_NUMBER: builtins.int
|
9712
|
+
RECURSIVE_FIELD_NUMBER: builtins.int
|
9713
|
+
MAX_ENTRIES_FIELD_NUMBER: builtins.int
|
9714
|
+
volume_id: builtins.str
|
9715
|
+
path: builtins.str
|
9716
|
+
recursive: builtins.bool
|
9717
|
+
max_entries: builtins.int
|
9718
|
+
def __init__(
|
9719
|
+
self,
|
9720
|
+
*,
|
9721
|
+
volume_id: builtins.str = ...,
|
9722
|
+
path: builtins.str = ...,
|
9723
|
+
recursive: builtins.bool = ...,
|
9724
|
+
max_entries: builtins.int | None = ...,
|
9725
|
+
) -> None: ...
|
9726
|
+
def HasField(self, field_name: typing_extensions.Literal["_max_entries", b"_max_entries", "max_entries", b"max_entries"]) -> builtins.bool: ...
|
9727
|
+
def ClearField(self, field_name: typing_extensions.Literal["_max_entries", b"_max_entries", "max_entries", b"max_entries", "path", b"path", "recursive", b"recursive", "volume_id", b"volume_id"]) -> None: ...
|
9728
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_max_entries", b"_max_entries"]) -> typing_extensions.Literal["max_entries"] | None: ...
|
9729
|
+
|
9730
|
+
global___VolumeListFiles2Request = VolumeListFiles2Request
|
9731
|
+
|
9732
|
+
class VolumeListFiles2Response(google.protobuf.message.Message):
|
9733
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9734
|
+
|
9735
|
+
ENTRIES_FIELD_NUMBER: builtins.int
|
9736
|
+
@property
|
9737
|
+
def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FileEntry]: ...
|
9738
|
+
def __init__(
|
9739
|
+
self,
|
9740
|
+
*,
|
9741
|
+
entries: collections.abc.Iterable[global___FileEntry] | None = ...,
|
9742
|
+
) -> None: ...
|
9743
|
+
def ClearField(self, field_name: typing_extensions.Literal["entries", b"entries"]) -> None: ...
|
9744
|
+
|
9745
|
+
global___VolumeListFiles2Response = VolumeListFiles2Response
|
9746
|
+
|
9707
9747
|
class VolumeListFilesRequest(google.protobuf.message.Message):
|
9708
9748
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
9709
9749
|
|
@@ -10008,6 +10048,26 @@ class VolumeReloadRequest(google.protobuf.message.Message):
|
|
10008
10048
|
|
10009
10049
|
global___VolumeReloadRequest = VolumeReloadRequest
|
10010
10050
|
|
10051
|
+
class VolumeRemoveFile2Request(google.protobuf.message.Message):
|
10052
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
10053
|
+
|
10054
|
+
VOLUME_ID_FIELD_NUMBER: builtins.int
|
10055
|
+
PATH_FIELD_NUMBER: builtins.int
|
10056
|
+
RECURSIVE_FIELD_NUMBER: builtins.int
|
10057
|
+
volume_id: builtins.str
|
10058
|
+
path: builtins.str
|
10059
|
+
recursive: builtins.bool
|
10060
|
+
def __init__(
|
10061
|
+
self,
|
10062
|
+
*,
|
10063
|
+
volume_id: builtins.str = ...,
|
10064
|
+
path: builtins.str = ...,
|
10065
|
+
recursive: builtins.bool = ...,
|
10066
|
+
) -> None: ...
|
10067
|
+
def ClearField(self, field_name: typing_extensions.Literal["path", b"path", "recursive", b"recursive", "volume_id", b"volume_id"]) -> None: ...
|
10068
|
+
|
10069
|
+
global___VolumeRemoveFile2Request = VolumeRemoveFile2Request
|
10070
|
+
|
10011
10071
|
class VolumeRemoveFileRequest(google.protobuf.message.Message):
|
10012
10072
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
10013
10073
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -740,6 +740,11 @@ class ModalClientStub(object):
|
|
740
740
|
request_serializer=modal__proto_dot_api__pb2.VolumeListFilesRequest.SerializeToString,
|
741
741
|
response_deserializer=modal__proto_dot_api__pb2.VolumeListFilesResponse.FromString,
|
742
742
|
)
|
743
|
+
self.VolumeListFiles2 = channel.unary_stream(
|
744
|
+
'/modal.client.ModalClient/VolumeListFiles2',
|
745
|
+
request_serializer=modal__proto_dot_api__pb2.VolumeListFiles2Request.SerializeToString,
|
746
|
+
response_deserializer=modal__proto_dot_api__pb2.VolumeListFiles2Response.FromString,
|
747
|
+
)
|
743
748
|
self.VolumePutFiles = channel.unary_unary(
|
744
749
|
'/modal.client.ModalClient/VolumePutFiles',
|
745
750
|
request_serializer=modal__proto_dot_api__pb2.VolumePutFilesRequest.SerializeToString,
|
@@ -760,6 +765,11 @@ class ModalClientStub(object):
|
|
760
765
|
request_serializer=modal__proto_dot_api__pb2.VolumeRemoveFileRequest.SerializeToString,
|
761
766
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
762
767
|
)
|
768
|
+
self.VolumeRemoveFile2 = channel.unary_unary(
|
769
|
+
'/modal.client.ModalClient/VolumeRemoveFile2',
|
770
|
+
request_serializer=modal__proto_dot_api__pb2.VolumeRemoveFile2Request.SerializeToString,
|
771
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
772
|
+
)
|
763
773
|
self.VolumeRename = channel.unary_unary(
|
764
774
|
'/modal.client.ModalClient/VolumeRename',
|
765
775
|
request_serializer=modal__proto_dot_api__pb2.VolumeRenameRequest.SerializeToString,
|
@@ -1674,6 +1684,12 @@ class ModalClientServicer(object):
|
|
1674
1684
|
context.set_details('Method not implemented!')
|
1675
1685
|
raise NotImplementedError('Method not implemented!')
|
1676
1686
|
|
1687
|
+
def VolumeListFiles2(self, request, context):
|
1688
|
+
"""Missing associated documentation comment in .proto file."""
|
1689
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1690
|
+
context.set_details('Method not implemented!')
|
1691
|
+
raise NotImplementedError('Method not implemented!')
|
1692
|
+
|
1677
1693
|
def VolumePutFiles(self, request, context):
|
1678
1694
|
"""Missing associated documentation comment in .proto file."""
|
1679
1695
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -1698,6 +1714,12 @@ class ModalClientServicer(object):
|
|
1698
1714
|
context.set_details('Method not implemented!')
|
1699
1715
|
raise NotImplementedError('Method not implemented!')
|
1700
1716
|
|
1717
|
+
def VolumeRemoveFile2(self, request, context):
|
1718
|
+
"""Missing associated documentation comment in .proto file."""
|
1719
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1720
|
+
context.set_details('Method not implemented!')
|
1721
|
+
raise NotImplementedError('Method not implemented!')
|
1722
|
+
|
1701
1723
|
def VolumeRename(self, request, context):
|
1702
1724
|
"""Missing associated documentation comment in .proto file."""
|
1703
1725
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2439,6 +2461,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2439
2461
|
request_deserializer=modal__proto_dot_api__pb2.VolumeListFilesRequest.FromString,
|
2440
2462
|
response_serializer=modal__proto_dot_api__pb2.VolumeListFilesResponse.SerializeToString,
|
2441
2463
|
),
|
2464
|
+
'VolumeListFiles2': grpc.unary_stream_rpc_method_handler(
|
2465
|
+
servicer.VolumeListFiles2,
|
2466
|
+
request_deserializer=modal__proto_dot_api__pb2.VolumeListFiles2Request.FromString,
|
2467
|
+
response_serializer=modal__proto_dot_api__pb2.VolumeListFiles2Response.SerializeToString,
|
2468
|
+
),
|
2442
2469
|
'VolumePutFiles': grpc.unary_unary_rpc_method_handler(
|
2443
2470
|
servicer.VolumePutFiles,
|
2444
2471
|
request_deserializer=modal__proto_dot_api__pb2.VolumePutFilesRequest.FromString,
|
@@ -2459,6 +2486,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2459
2486
|
request_deserializer=modal__proto_dot_api__pb2.VolumeRemoveFileRequest.FromString,
|
2460
2487
|
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2461
2488
|
),
|
2489
|
+
'VolumeRemoveFile2': grpc.unary_unary_rpc_method_handler(
|
2490
|
+
servicer.VolumeRemoveFile2,
|
2491
|
+
request_deserializer=modal__proto_dot_api__pb2.VolumeRemoveFile2Request.FromString,
|
2492
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2493
|
+
),
|
2462
2494
|
'VolumeRename': grpc.unary_unary_rpc_method_handler(
|
2463
2495
|
servicer.VolumeRename,
|
2464
2496
|
request_deserializer=modal__proto_dot_api__pb2.VolumeRenameRequest.FromString,
|
@@ -4944,6 +4976,23 @@ class ModalClient(object):
|
|
4944
4976
|
options, channel_credentials,
|
4945
4977
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4946
4978
|
|
4979
|
+
@staticmethod
|
4980
|
+
def VolumeListFiles2(request,
|
4981
|
+
target,
|
4982
|
+
options=(),
|
4983
|
+
channel_credentials=None,
|
4984
|
+
call_credentials=None,
|
4985
|
+
insecure=False,
|
4986
|
+
compression=None,
|
4987
|
+
wait_for_ready=None,
|
4988
|
+
timeout=None,
|
4989
|
+
metadata=None):
|
4990
|
+
return grpc.experimental.unary_stream(request, target, '/modal.client.ModalClient/VolumeListFiles2',
|
4991
|
+
modal__proto_dot_api__pb2.VolumeListFiles2Request.SerializeToString,
|
4992
|
+
modal__proto_dot_api__pb2.VolumeListFiles2Response.FromString,
|
4993
|
+
options, channel_credentials,
|
4994
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4995
|
+
|
4947
4996
|
@staticmethod
|
4948
4997
|
def VolumePutFiles(request,
|
4949
4998
|
target,
|
@@ -5012,6 +5061,23 @@ class ModalClient(object):
|
|
5012
5061
|
options, channel_credentials,
|
5013
5062
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
5014
5063
|
|
5064
|
+
@staticmethod
|
5065
|
+
def VolumeRemoveFile2(request,
|
5066
|
+
target,
|
5067
|
+
options=(),
|
5068
|
+
channel_credentials=None,
|
5069
|
+
call_credentials=None,
|
5070
|
+
insecure=False,
|
5071
|
+
compression=None,
|
5072
|
+
wait_for_ready=None,
|
5073
|
+
timeout=None,
|
5074
|
+
metadata=None):
|
5075
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/VolumeRemoveFile2',
|
5076
|
+
modal__proto_dot_api__pb2.VolumeRemoveFile2Request.SerializeToString,
|
5077
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
5078
|
+
options, channel_credentials,
|
5079
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
5080
|
+
|
5015
5081
|
@staticmethod
|
5016
5082
|
def VolumeRename(request,
|
5017
5083
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -620,6 +620,10 @@ class ModalClientStub:
|
|
620
620
|
modal_proto.api_pb2.VolumeListFilesRequest,
|
621
621
|
modal_proto.api_pb2.VolumeListFilesResponse,
|
622
622
|
]
|
623
|
+
VolumeListFiles2: grpc.UnaryStreamMultiCallable[
|
624
|
+
modal_proto.api_pb2.VolumeListFiles2Request,
|
625
|
+
modal_proto.api_pb2.VolumeListFiles2Response,
|
626
|
+
]
|
623
627
|
VolumePutFiles: grpc.UnaryUnaryMultiCallable[
|
624
628
|
modal_proto.api_pb2.VolumePutFilesRequest,
|
625
629
|
google.protobuf.empty_pb2.Empty,
|
@@ -636,6 +640,10 @@ class ModalClientStub:
|
|
636
640
|
modal_proto.api_pb2.VolumeRemoveFileRequest,
|
637
641
|
google.protobuf.empty_pb2.Empty,
|
638
642
|
]
|
643
|
+
VolumeRemoveFile2: grpc.UnaryUnaryMultiCallable[
|
644
|
+
modal_proto.api_pb2.VolumeRemoveFile2Request,
|
645
|
+
google.protobuf.empty_pb2.Empty,
|
646
|
+
]
|
639
647
|
VolumeRename: grpc.UnaryUnaryMultiCallable[
|
640
648
|
modal_proto.api_pb2.VolumeRenameRequest,
|
641
649
|
google.protobuf.empty_pb2.Empty,
|
@@ -1548,6 +1556,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1548
1556
|
context: grpc.ServicerContext,
|
1549
1557
|
) -> collections.abc.Iterator[modal_proto.api_pb2.VolumeListFilesResponse]: ...
|
1550
1558
|
@abc.abstractmethod
|
1559
|
+
def VolumeListFiles2(
|
1560
|
+
self,
|
1561
|
+
request: modal_proto.api_pb2.VolumeListFiles2Request,
|
1562
|
+
context: grpc.ServicerContext,
|
1563
|
+
) -> collections.abc.Iterator[modal_proto.api_pb2.VolumeListFiles2Response]: ...
|
1564
|
+
@abc.abstractmethod
|
1551
1565
|
def VolumePutFiles(
|
1552
1566
|
self,
|
1553
1567
|
request: modal_proto.api_pb2.VolumePutFilesRequest,
|
@@ -1572,6 +1586,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1572
1586
|
context: grpc.ServicerContext,
|
1573
1587
|
) -> google.protobuf.empty_pb2.Empty: ...
|
1574
1588
|
@abc.abstractmethod
|
1589
|
+
def VolumeRemoveFile2(
|
1590
|
+
self,
|
1591
|
+
request: modal_proto.api_pb2.VolumeRemoveFile2Request,
|
1592
|
+
context: grpc.ServicerContext,
|
1593
|
+
) -> google.protobuf.empty_pb2.Empty: ...
|
1594
|
+
@abc.abstractmethod
|
1575
1595
|
def VolumeRename(
|
1576
1596
|
self,
|
1577
1597
|
request: modal_proto.api_pb2.VolumeRenameRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -163,9 +163,11 @@ class ModalClientModal:
|
|
163
163
|
self.VolumeHeartbeat = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeHeartbeat, client, server_url)
|
164
164
|
self.VolumeList = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeList, client, server_url)
|
165
165
|
self.VolumeListFiles = modal.client.UnaryStreamWrapper(grpclib_stub.VolumeListFiles, client, server_url)
|
166
|
+
self.VolumeListFiles2 = modal.client.UnaryStreamWrapper(grpclib_stub.VolumeListFiles2, client, server_url)
|
166
167
|
self.VolumePutFiles = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumePutFiles, client, server_url)
|
167
168
|
self.VolumePutFiles2 = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumePutFiles2, client, server_url)
|
168
169
|
self.VolumeReload = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeReload, client, server_url)
|
169
170
|
self.VolumeRemoveFile = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeRemoveFile, client, server_url)
|
171
|
+
self.VolumeRemoveFile2 = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeRemoveFile2, client, server_url)
|
170
172
|
self.VolumeRename = modal.client.UnaryUnaryWrapper(grpclib_stub.VolumeRename, client, server_url)
|
171
173
|
self.WorkspaceNameLookup = modal.client.UnaryUnaryWrapper(grpclib_stub.WorkspaceNameLookup, client, server_url)
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|