modal 0.72.35__py3-none-any.whl → 0.72.37__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/experimental.py +47 -11
- modal/experimental.pyi +29 -0
- modal/functions.pyi +6 -6
- {modal-0.72.35.dist-info → modal-0.72.37.dist-info}/METADATA +1 -1
- {modal-0.72.35.dist-info → modal-0.72.37.dist-info}/RECORD +18 -17
- modal_proto/api.proto +14 -0
- modal_proto/api_grpc.py +32 -0
- modal_proto/api_pb2.py +365 -331
- modal_proto/api_pb2.pyi +44 -0
- modal_proto/api_pb2_grpc.py +67 -1
- modal_proto/api_pb2_grpc.pyi +23 -3
- modal_proto/modal_api_grpc.py +2 -0
- modal_version/_version_generated.py +1 -1
- {modal-0.72.35.dist-info → modal-0.72.37.dist-info}/LICENSE +0 -0
- {modal-0.72.35.dist-info → modal-0.72.37.dist-info}/WHEEL +0 -0
- {modal-0.72.35.dist-info → modal-0.72.37.dist-info}/entry_points.txt +0 -0
- {modal-0.72.35.dist-info → modal-0.72.37.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -6409,6 +6409,36 @@ class Proxy(google.protobuf.message.Message):
|
|
6409
6409
|
|
6410
6410
|
global___Proxy = Proxy
|
6411
6411
|
|
6412
|
+
class ProxyAddIpRequest(google.protobuf.message.Message):
|
6413
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6414
|
+
|
6415
|
+
PROXY_ID_FIELD_NUMBER: builtins.int
|
6416
|
+
proxy_id: builtins.str
|
6417
|
+
def __init__(
|
6418
|
+
self,
|
6419
|
+
*,
|
6420
|
+
proxy_id: builtins.str = ...,
|
6421
|
+
) -> None: ...
|
6422
|
+
def ClearField(self, field_name: typing_extensions.Literal["proxy_id", b"proxy_id"]) -> None: ...
|
6423
|
+
|
6424
|
+
global___ProxyAddIpRequest = ProxyAddIpRequest
|
6425
|
+
|
6426
|
+
class ProxyAddIpResponse(google.protobuf.message.Message):
|
6427
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6428
|
+
|
6429
|
+
PROXY_IP_FIELD_NUMBER: builtins.int
|
6430
|
+
@property
|
6431
|
+
def proxy_ip(self) -> global___ProxyIp: ...
|
6432
|
+
def __init__(
|
6433
|
+
self,
|
6434
|
+
*,
|
6435
|
+
proxy_ip: global___ProxyIp | None = ...,
|
6436
|
+
) -> None: ...
|
6437
|
+
def HasField(self, field_name: typing_extensions.Literal["proxy_ip", b"proxy_ip"]) -> builtins.bool: ...
|
6438
|
+
def ClearField(self, field_name: typing_extensions.Literal["proxy_ip", b"proxy_ip"]) -> None: ...
|
6439
|
+
|
6440
|
+
global___ProxyAddIpResponse = ProxyAddIpResponse
|
6441
|
+
|
6412
6442
|
class ProxyCreateRequest(google.protobuf.message.Message):
|
6413
6443
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6414
6444
|
|
@@ -6591,6 +6621,20 @@ class ProxyListResponse(google.protobuf.message.Message):
|
|
6591
6621
|
|
6592
6622
|
global___ProxyListResponse = ProxyListResponse
|
6593
6623
|
|
6624
|
+
class ProxyRemoveIpRequest(google.protobuf.message.Message):
|
6625
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6626
|
+
|
6627
|
+
PROXY_IP_FIELD_NUMBER: builtins.int
|
6628
|
+
proxy_ip: builtins.str
|
6629
|
+
def __init__(
|
6630
|
+
self,
|
6631
|
+
*,
|
6632
|
+
proxy_ip: builtins.str = ...,
|
6633
|
+
) -> None: ...
|
6634
|
+
def ClearField(self, field_name: typing_extensions.Literal["proxy_ip", b"proxy_ip"]) -> None: ...
|
6635
|
+
|
6636
|
+
global___ProxyRemoveIpRequest = ProxyRemoveIpRequest
|
6637
|
+
|
6594
6638
|
class QueueClearRequest(google.protobuf.message.Message):
|
6595
6639
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
6596
6640
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -410,6 +410,11 @@ class ModalClientStub(object):
|
|
410
410
|
request_serializer=modal__proto_dot_api__pb2.NotebookKernelPublishResultsRequest.SerializeToString,
|
411
411
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
412
412
|
)
|
413
|
+
self.ProxyAddIp = channel.unary_unary(
|
414
|
+
'/modal.client.ModalClient/ProxyAddIp',
|
415
|
+
request_serializer=modal__proto_dot_api__pb2.ProxyAddIpRequest.SerializeToString,
|
416
|
+
response_deserializer=modal__proto_dot_api__pb2.ProxyAddIpResponse.FromString,
|
417
|
+
)
|
413
418
|
self.ProxyCreate = channel.unary_unary(
|
414
419
|
'/modal.client.ModalClient/ProxyCreate',
|
415
420
|
request_serializer=modal__proto_dot_api__pb2.ProxyCreateRequest.SerializeToString,
|
@@ -435,6 +440,11 @@ class ModalClientStub(object):
|
|
435
440
|
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
436
441
|
response_deserializer=modal__proto_dot_api__pb2.ProxyListResponse.FromString,
|
437
442
|
)
|
443
|
+
self.ProxyRemoveIp = channel.unary_unary(
|
444
|
+
'/modal.client.ModalClient/ProxyRemoveIp',
|
445
|
+
request_serializer=modal__proto_dot_api__pb2.ProxyRemoveIpRequest.SerializeToString,
|
446
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
447
|
+
)
|
438
448
|
self.QueueClear = channel.unary_unary(
|
439
449
|
'/modal.client.ModalClient/QueueClear',
|
440
450
|
request_serializer=modal__proto_dot_api__pb2.QueueClearRequest.SerializeToString,
|
@@ -1204,13 +1214,19 @@ class ModalClientServicer(object):
|
|
1204
1214
|
context.set_details('Method not implemented!')
|
1205
1215
|
raise NotImplementedError('Method not implemented!')
|
1206
1216
|
|
1207
|
-
def
|
1217
|
+
def ProxyAddIp(self, request, context):
|
1208
1218
|
"""Proxies
|
1209
1219
|
"""
|
1210
1220
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1211
1221
|
context.set_details('Method not implemented!')
|
1212
1222
|
raise NotImplementedError('Method not implemented!')
|
1213
1223
|
|
1224
|
+
def ProxyCreate(self, request, context):
|
1225
|
+
"""Missing associated documentation comment in .proto file."""
|
1226
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1227
|
+
context.set_details('Method not implemented!')
|
1228
|
+
raise NotImplementedError('Method not implemented!')
|
1229
|
+
|
1214
1230
|
def ProxyDelete(self, request, context):
|
1215
1231
|
"""Missing associated documentation comment in .proto file."""
|
1216
1232
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -1235,6 +1251,12 @@ class ModalClientServicer(object):
|
|
1235
1251
|
context.set_details('Method not implemented!')
|
1236
1252
|
raise NotImplementedError('Method not implemented!')
|
1237
1253
|
|
1254
|
+
def ProxyRemoveIp(self, request, context):
|
1255
|
+
"""Missing associated documentation comment in .proto file."""
|
1256
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1257
|
+
context.set_details('Method not implemented!')
|
1258
|
+
raise NotImplementedError('Method not implemented!')
|
1259
|
+
|
1238
1260
|
def QueueClear(self, request, context):
|
1239
1261
|
"""Queues
|
1240
1262
|
"""
|
@@ -1973,6 +1995,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
1973
1995
|
request_deserializer=modal__proto_dot_api__pb2.NotebookKernelPublishResultsRequest.FromString,
|
1974
1996
|
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
1975
1997
|
),
|
1998
|
+
'ProxyAddIp': grpc.unary_unary_rpc_method_handler(
|
1999
|
+
servicer.ProxyAddIp,
|
2000
|
+
request_deserializer=modal__proto_dot_api__pb2.ProxyAddIpRequest.FromString,
|
2001
|
+
response_serializer=modal__proto_dot_api__pb2.ProxyAddIpResponse.SerializeToString,
|
2002
|
+
),
|
1976
2003
|
'ProxyCreate': grpc.unary_unary_rpc_method_handler(
|
1977
2004
|
servicer.ProxyCreate,
|
1978
2005
|
request_deserializer=modal__proto_dot_api__pb2.ProxyCreateRequest.FromString,
|
@@ -1998,6 +2025,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
1998
2025
|
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
1999
2026
|
response_serializer=modal__proto_dot_api__pb2.ProxyListResponse.SerializeToString,
|
2000
2027
|
),
|
2028
|
+
'ProxyRemoveIp': grpc.unary_unary_rpc_method_handler(
|
2029
|
+
servicer.ProxyRemoveIp,
|
2030
|
+
request_deserializer=modal__proto_dot_api__pb2.ProxyRemoveIpRequest.FromString,
|
2031
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2032
|
+
),
|
2001
2033
|
'QueueClear': grpc.unary_unary_rpc_method_handler(
|
2002
2034
|
servicer.QueueClear,
|
2003
2035
|
request_deserializer=modal__proto_dot_api__pb2.QueueClearRequest.FromString,
|
@@ -3626,6 +3658,23 @@ class ModalClient(object):
|
|
3626
3658
|
options, channel_credentials,
|
3627
3659
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3628
3660
|
|
3661
|
+
@staticmethod
|
3662
|
+
def ProxyAddIp(request,
|
3663
|
+
target,
|
3664
|
+
options=(),
|
3665
|
+
channel_credentials=None,
|
3666
|
+
call_credentials=None,
|
3667
|
+
insecure=False,
|
3668
|
+
compression=None,
|
3669
|
+
wait_for_ready=None,
|
3670
|
+
timeout=None,
|
3671
|
+
metadata=None):
|
3672
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/ProxyAddIp',
|
3673
|
+
modal__proto_dot_api__pb2.ProxyAddIpRequest.SerializeToString,
|
3674
|
+
modal__proto_dot_api__pb2.ProxyAddIpResponse.FromString,
|
3675
|
+
options, channel_credentials,
|
3676
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3677
|
+
|
3629
3678
|
@staticmethod
|
3630
3679
|
def ProxyCreate(request,
|
3631
3680
|
target,
|
@@ -3711,6 +3760,23 @@ class ModalClient(object):
|
|
3711
3760
|
options, channel_credentials,
|
3712
3761
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3713
3762
|
|
3763
|
+
@staticmethod
|
3764
|
+
def ProxyRemoveIp(request,
|
3765
|
+
target,
|
3766
|
+
options=(),
|
3767
|
+
channel_credentials=None,
|
3768
|
+
call_credentials=None,
|
3769
|
+
insecure=False,
|
3770
|
+
compression=None,
|
3771
|
+
wait_for_ready=None,
|
3772
|
+
timeout=None,
|
3773
|
+
metadata=None):
|
3774
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/ProxyRemoveIp',
|
3775
|
+
modal__proto_dot_api__pb2.ProxyRemoveIpRequest.SerializeToString,
|
3776
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
3777
|
+
options, channel_credentials,
|
3778
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3779
|
+
|
3714
3780
|
@staticmethod
|
3715
3781
|
def QueueClear(request,
|
3716
3782
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -341,11 +341,15 @@ class ModalClientStub:
|
|
341
341
|
google.protobuf.empty_pb2.Empty,
|
342
342
|
]
|
343
343
|
"""Notebooks"""
|
344
|
+
ProxyAddIp: grpc.UnaryUnaryMultiCallable[
|
345
|
+
modal_proto.api_pb2.ProxyAddIpRequest,
|
346
|
+
modal_proto.api_pb2.ProxyAddIpResponse,
|
347
|
+
]
|
348
|
+
"""Proxies"""
|
344
349
|
ProxyCreate: grpc.UnaryUnaryMultiCallable[
|
345
350
|
modal_proto.api_pb2.ProxyCreateRequest,
|
346
351
|
modal_proto.api_pb2.ProxyCreateResponse,
|
347
352
|
]
|
348
|
-
"""Proxies"""
|
349
353
|
ProxyDelete: grpc.UnaryUnaryMultiCallable[
|
350
354
|
modal_proto.api_pb2.ProxyDeleteRequest,
|
351
355
|
google.protobuf.empty_pb2.Empty,
|
@@ -362,6 +366,10 @@ class ModalClientStub:
|
|
362
366
|
google.protobuf.empty_pb2.Empty,
|
363
367
|
modal_proto.api_pb2.ProxyListResponse,
|
364
368
|
]
|
369
|
+
ProxyRemoveIp: grpc.UnaryUnaryMultiCallable[
|
370
|
+
modal_proto.api_pb2.ProxyRemoveIpRequest,
|
371
|
+
google.protobuf.empty_pb2.Empty,
|
372
|
+
]
|
365
373
|
QueueClear: grpc.UnaryUnaryMultiCallable[
|
366
374
|
modal_proto.api_pb2.QueueClearRequest,
|
367
375
|
google.protobuf.empty_pb2.Empty,
|
@@ -1084,12 +1092,18 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1084
1092
|
) -> google.protobuf.empty_pb2.Empty:
|
1085
1093
|
"""Notebooks"""
|
1086
1094
|
@abc.abstractmethod
|
1095
|
+
def ProxyAddIp(
|
1096
|
+
self,
|
1097
|
+
request: modal_proto.api_pb2.ProxyAddIpRequest,
|
1098
|
+
context: grpc.ServicerContext,
|
1099
|
+
) -> modal_proto.api_pb2.ProxyAddIpResponse:
|
1100
|
+
"""Proxies"""
|
1101
|
+
@abc.abstractmethod
|
1087
1102
|
def ProxyCreate(
|
1088
1103
|
self,
|
1089
1104
|
request: modal_proto.api_pb2.ProxyCreateRequest,
|
1090
1105
|
context: grpc.ServicerContext,
|
1091
|
-
) -> modal_proto.api_pb2.ProxyCreateResponse:
|
1092
|
-
"""Proxies"""
|
1106
|
+
) -> modal_proto.api_pb2.ProxyCreateResponse: ...
|
1093
1107
|
@abc.abstractmethod
|
1094
1108
|
def ProxyDelete(
|
1095
1109
|
self,
|
@@ -1115,6 +1129,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1115
1129
|
context: grpc.ServicerContext,
|
1116
1130
|
) -> modal_proto.api_pb2.ProxyListResponse: ...
|
1117
1131
|
@abc.abstractmethod
|
1132
|
+
def ProxyRemoveIp(
|
1133
|
+
self,
|
1134
|
+
request: modal_proto.api_pb2.ProxyRemoveIpRequest,
|
1135
|
+
context: grpc.ServicerContext,
|
1136
|
+
) -> google.protobuf.empty_pb2.Empty: ...
|
1137
|
+
@abc.abstractmethod
|
1118
1138
|
def QueueClear(
|
1119
1139
|
self,
|
1120
1140
|
request: modal_proto.api_pb2.QueueClearRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -91,11 +91,13 @@ class ModalClientModal:
|
|
91
91
|
self.MountGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.MountGetOrCreate, client)
|
92
92
|
self.MountPutFile = modal.client.UnaryUnaryWrapper(grpclib_stub.MountPutFile, client)
|
93
93
|
self.NotebookKernelPublishResults = modal.client.UnaryUnaryWrapper(grpclib_stub.NotebookKernelPublishResults, client)
|
94
|
+
self.ProxyAddIp = modal.client.UnaryUnaryWrapper(grpclib_stub.ProxyAddIp, client)
|
94
95
|
self.ProxyCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.ProxyCreate, client)
|
95
96
|
self.ProxyDelete = modal.client.UnaryUnaryWrapper(grpclib_stub.ProxyDelete, client)
|
96
97
|
self.ProxyGet = modal.client.UnaryUnaryWrapper(grpclib_stub.ProxyGet, client)
|
97
98
|
self.ProxyGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.ProxyGetOrCreate, client)
|
98
99
|
self.ProxyList = modal.client.UnaryUnaryWrapper(grpclib_stub.ProxyList, client)
|
100
|
+
self.ProxyRemoveIp = modal.client.UnaryUnaryWrapper(grpclib_stub.ProxyRemoveIp, client)
|
99
101
|
self.QueueClear = modal.client.UnaryUnaryWrapper(grpclib_stub.QueueClear, client)
|
100
102
|
self.QueueDelete = modal.client.UnaryUnaryWrapper(grpclib_stub.QueueDelete, client)
|
101
103
|
self.QueueGet = modal.client.UnaryUnaryWrapper(grpclib_stub.QueueGet, client)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|