modal 0.67.22__py3-none-any.whl → 0.67.42__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 +3 -1
- modal/_runtime/container_io_manager.py +2 -2
- modal/_utils/function_utils.py +6 -0
- modal/cli/_traceback.py +8 -3
- modal/cli/app.py +1 -1
- modal/cli/network_file_system.py +23 -2
- modal/client.py +1 -1
- modal/client.pyi +2 -2
- modal/cls.py +68 -15
- modal/cls.pyi +5 -6
- modal/functions.py +3 -66
- modal/functions.pyi +4 -8
- modal/image.py +13 -8
- modal/image.pyi +2 -2
- modal/io_streams.py +1 -1
- modal/network_file_system.py +6 -0
- modal/network_file_system.pyi +20 -0
- modal/queue.py +33 -27
- modal/sandbox.py +37 -12
- modal/sandbox.pyi +10 -3
- {modal-0.67.22.dist-info → modal-0.67.42.dist-info}/METADATA +1 -1
- {modal-0.67.22.dist-info → modal-0.67.42.dist-info}/RECORD +34 -34
- modal_proto/api.proto +28 -1
- modal_proto/api_grpc.py +32 -0
- modal_proto/api_pb2.py +743 -710
- modal_proto/api_pb2.pyi +92 -5
- 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.67.22.dist-info → modal-0.67.42.dist-info}/LICENSE +0 -0
- {modal-0.67.22.dist-info → modal-0.67.42.dist-info}/WHEEL +0 -0
- {modal-0.67.22.dist-info → modal-0.67.42.dist-info}/entry_points.txt +0 -0
- {modal-0.67.22.dist-info → modal-0.67.42.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -1224,16 +1224,21 @@ class AppPublishResponse(google.protobuf.message.Message):
|
|
1224
1224
|
|
1225
1225
|
URL_FIELD_NUMBER: builtins.int
|
1226
1226
|
WARNINGS_FIELD_NUMBER: builtins.int
|
1227
|
+
SERVER_WARNINGS_FIELD_NUMBER: builtins.int
|
1227
1228
|
url: builtins.str
|
1228
1229
|
@property
|
1229
|
-
def warnings(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
1230
|
+
def warnings(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
1231
|
+
"""Deprecated soon in favor of server_warnings"""
|
1232
|
+
@property
|
1233
|
+
def server_warnings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Warning]: ...
|
1230
1234
|
def __init__(
|
1231
1235
|
self,
|
1232
1236
|
*,
|
1233
1237
|
url: builtins.str = ...,
|
1234
1238
|
warnings: collections.abc.Iterable[builtins.str] | None = ...,
|
1239
|
+
server_warnings: collections.abc.Iterable[global___Warning] | None = ...,
|
1235
1240
|
) -> None: ...
|
1236
|
-
def ClearField(self, field_name: typing_extensions.Literal["url", b"url", "warnings", b"warnings"]) -> None: ...
|
1241
|
+
def ClearField(self, field_name: typing_extensions.Literal["server_warnings", b"server_warnings", "url", b"url", "warnings", b"warnings"]) -> None: ...
|
1237
1242
|
|
1238
1243
|
global___AppPublishResponse = AppPublishResponse
|
1239
1244
|
|
@@ -1806,12 +1811,14 @@ class CheckpointInfo(google.protobuf.message.Message):
|
|
1806
1811
|
RUNTIME_FINGERPRINT_FIELD_NUMBER: builtins.int
|
1807
1812
|
SIZE_FIELD_NUMBER: builtins.int
|
1808
1813
|
CHECKSUM_IS_FILE_INDEX_FIELD_NUMBER: builtins.int
|
1814
|
+
ORIGINAL_TASK_ID_FIELD_NUMBER: builtins.int
|
1809
1815
|
checksum: builtins.str
|
1810
1816
|
status: global___CheckpointStatus.ValueType
|
1811
1817
|
checkpoint_id: builtins.str
|
1812
1818
|
runtime_fingerprint: builtins.str
|
1813
1819
|
size: builtins.int
|
1814
1820
|
checksum_is_file_index: builtins.bool
|
1821
|
+
original_task_id: builtins.str
|
1815
1822
|
def __init__(
|
1816
1823
|
self,
|
1817
1824
|
*,
|
@@ -1821,8 +1828,9 @@ class CheckpointInfo(google.protobuf.message.Message):
|
|
1821
1828
|
runtime_fingerprint: builtins.str = ...,
|
1822
1829
|
size: builtins.int = ...,
|
1823
1830
|
checksum_is_file_index: builtins.bool = ...,
|
1831
|
+
original_task_id: builtins.str = ...,
|
1824
1832
|
) -> None: ...
|
1825
|
-
def ClearField(self, field_name: typing_extensions.Literal["checkpoint_id", b"checkpoint_id", "checksum", b"checksum", "checksum_is_file_index", b"checksum_is_file_index", "runtime_fingerprint", b"runtime_fingerprint", "size", b"size", "status", b"status"]) -> None: ...
|
1833
|
+
def ClearField(self, field_name: typing_extensions.Literal["checkpoint_id", b"checkpoint_id", "checksum", b"checksum", "checksum_is_file_index", b"checksum_is_file_index", "original_task_id", b"original_task_id", "runtime_fingerprint", b"runtime_fingerprint", "size", b"size", "status", b"status"]) -> None: ...
|
1826
1834
|
|
1827
1835
|
global___CheckpointInfo = CheckpointInfo
|
1828
1836
|
|
@@ -1909,17 +1917,21 @@ class ClassGetResponse(google.protobuf.message.Message):
|
|
1909
1917
|
|
1910
1918
|
CLASS_ID_FIELD_NUMBER: builtins.int
|
1911
1919
|
HANDLE_METADATA_FIELD_NUMBER: builtins.int
|
1920
|
+
SERVER_WARNINGS_FIELD_NUMBER: builtins.int
|
1912
1921
|
class_id: builtins.str
|
1913
1922
|
@property
|
1914
1923
|
def handle_metadata(self) -> global___ClassHandleMetadata: ...
|
1924
|
+
@property
|
1925
|
+
def server_warnings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Warning]: ...
|
1915
1926
|
def __init__(
|
1916
1927
|
self,
|
1917
1928
|
*,
|
1918
1929
|
class_id: builtins.str = ...,
|
1919
1930
|
handle_metadata: global___ClassHandleMetadata | None = ...,
|
1931
|
+
server_warnings: collections.abc.Iterable[global___Warning] | None = ...,
|
1920
1932
|
) -> None: ...
|
1921
1933
|
def HasField(self, field_name: typing_extensions.Literal["handle_metadata", b"handle_metadata"]) -> builtins.bool: ...
|
1922
|
-
def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "handle_metadata", b"handle_metadata"]) -> None: ...
|
1934
|
+
def ClearField(self, field_name: typing_extensions.Literal["class_id", b"class_id", "handle_metadata", b"handle_metadata", "server_warnings", b"server_warnings"]) -> None: ...
|
1923
1935
|
|
1924
1936
|
global___ClassGetResponse = ClassGetResponse
|
1925
1937
|
|
@@ -3765,6 +3777,45 @@ class Function(google.protobuf.message.Message):
|
|
3765
3777
|
|
3766
3778
|
global___Function = Function
|
3767
3779
|
|
3780
|
+
class FunctionAsyncInvokeRequest(google.protobuf.message.Message):
|
3781
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
3782
|
+
|
3783
|
+
FUNCTION_ID_FIELD_NUMBER: builtins.int
|
3784
|
+
PARENT_INPUT_ID_FIELD_NUMBER: builtins.int
|
3785
|
+
INPUT_FIELD_NUMBER: builtins.int
|
3786
|
+
function_id: builtins.str
|
3787
|
+
parent_input_id: builtins.str
|
3788
|
+
@property
|
3789
|
+
def input(self) -> global___FunctionInput: ...
|
3790
|
+
def __init__(
|
3791
|
+
self,
|
3792
|
+
*,
|
3793
|
+
function_id: builtins.str = ...,
|
3794
|
+
parent_input_id: builtins.str = ...,
|
3795
|
+
input: global___FunctionInput | None = ...,
|
3796
|
+
) -> None: ...
|
3797
|
+
def HasField(self, field_name: typing_extensions.Literal["input", b"input"]) -> builtins.bool: ...
|
3798
|
+
def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "input", b"input", "parent_input_id", b"parent_input_id"]) -> None: ...
|
3799
|
+
|
3800
|
+
global___FunctionAsyncInvokeRequest = FunctionAsyncInvokeRequest
|
3801
|
+
|
3802
|
+
class FunctionAsyncInvokeResponse(google.protobuf.message.Message):
|
3803
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
3804
|
+
|
3805
|
+
RETRY_WITH_BLOB_UPLOAD_FIELD_NUMBER: builtins.int
|
3806
|
+
FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
|
3807
|
+
retry_with_blob_upload: builtins.bool
|
3808
|
+
function_call_id: builtins.str
|
3809
|
+
def __init__(
|
3810
|
+
self,
|
3811
|
+
*,
|
3812
|
+
retry_with_blob_upload: builtins.bool = ...,
|
3813
|
+
function_call_id: builtins.str = ...,
|
3814
|
+
) -> None: ...
|
3815
|
+
def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "retry_with_blob_upload", b"retry_with_blob_upload"]) -> None: ...
|
3816
|
+
|
3817
|
+
global___FunctionAsyncInvokeResponse = FunctionAsyncInvokeResponse
|
3818
|
+
|
3768
3819
|
class FunctionBindParamsRequest(google.protobuf.message.Message):
|
3769
3820
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
3770
3821
|
|
@@ -4495,17 +4546,21 @@ class FunctionGetResponse(google.protobuf.message.Message):
|
|
4495
4546
|
|
4496
4547
|
FUNCTION_ID_FIELD_NUMBER: builtins.int
|
4497
4548
|
HANDLE_METADATA_FIELD_NUMBER: builtins.int
|
4549
|
+
SERVER_WARNINGS_FIELD_NUMBER: builtins.int
|
4498
4550
|
function_id: builtins.str
|
4499
4551
|
@property
|
4500
4552
|
def handle_metadata(self) -> global___FunctionHandleMetadata: ...
|
4553
|
+
@property
|
4554
|
+
def server_warnings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Warning]: ...
|
4501
4555
|
def __init__(
|
4502
4556
|
self,
|
4503
4557
|
*,
|
4504
4558
|
function_id: builtins.str = ...,
|
4505
4559
|
handle_metadata: global___FunctionHandleMetadata | None = ...,
|
4560
|
+
server_warnings: collections.abc.Iterable[global___Warning] | None = ...,
|
4506
4561
|
) -> None: ...
|
4507
4562
|
def HasField(self, field_name: typing_extensions.Literal["handle_metadata", b"handle_metadata"]) -> builtins.bool: ...
|
4508
|
-
def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "handle_metadata", b"handle_metadata"]) -> None: ...
|
4563
|
+
def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "handle_metadata", b"handle_metadata", "server_warnings", b"server_warnings"]) -> None: ...
|
4509
4564
|
|
4510
4565
|
global___FunctionGetResponse = FunctionGetResponse
|
4511
4566
|
|
@@ -8459,6 +8514,38 @@ class VolumeRemoveFileRequest(google.protobuf.message.Message):
|
|
8459
8514
|
|
8460
8515
|
global___VolumeRemoveFileRequest = VolumeRemoveFileRequest
|
8461
8516
|
|
8517
|
+
class Warning(google.protobuf.message.Message):
|
8518
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8519
|
+
|
8520
|
+
class _WarningType:
|
8521
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
8522
|
+
V: typing_extensions.TypeAlias = ValueType
|
8523
|
+
|
8524
|
+
class _WarningTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Warning._WarningType.ValueType], builtins.type): # noqa: F821
|
8525
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
8526
|
+
WARNING_TYPE_UNSPECIFIED: Warning._WarningType.ValueType # 0
|
8527
|
+
WARNING_TYPE_CLIENT_DEPRECATION: Warning._WarningType.ValueType # 1
|
8528
|
+
WARNING_TYPE_RESOURCE_LIMIT: Warning._WarningType.ValueType # 2
|
8529
|
+
|
8530
|
+
class WarningType(_WarningType, metaclass=_WarningTypeEnumTypeWrapper): ...
|
8531
|
+
WARNING_TYPE_UNSPECIFIED: Warning.WarningType.ValueType # 0
|
8532
|
+
WARNING_TYPE_CLIENT_DEPRECATION: Warning.WarningType.ValueType # 1
|
8533
|
+
WARNING_TYPE_RESOURCE_LIMIT: Warning.WarningType.ValueType # 2
|
8534
|
+
|
8535
|
+
TYPE_FIELD_NUMBER: builtins.int
|
8536
|
+
MESSAGE_FIELD_NUMBER: builtins.int
|
8537
|
+
type: global___Warning.WarningType.ValueType
|
8538
|
+
message: builtins.str
|
8539
|
+
def __init__(
|
8540
|
+
self,
|
8541
|
+
*,
|
8542
|
+
type: global___Warning.WarningType.ValueType = ...,
|
8543
|
+
message: builtins.str = ...,
|
8544
|
+
) -> None: ...
|
8545
|
+
def ClearField(self, field_name: typing_extensions.Literal["message", b"message", "type", b"type"]) -> None: ...
|
8546
|
+
|
8547
|
+
global___Warning = Warning
|
8548
|
+
|
8462
8549
|
class WebUrlInfo(google.protobuf.message.Message):
|
8463
8550
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8464
8551
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -155,6 +155,11 @@ class ModalClientStub(object):
|
|
155
155
|
request_serializer=modal__proto_dot_api__pb2.ContainerHeartbeatRequest.SerializeToString,
|
156
156
|
response_deserializer=modal__proto_dot_api__pb2.ContainerHeartbeatResponse.FromString,
|
157
157
|
)
|
158
|
+
self.ContainerHello = channel.unary_unary(
|
159
|
+
'/modal.client.ModalClient/ContainerHello',
|
160
|
+
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
161
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
162
|
+
)
|
158
163
|
self.ContainerLog = channel.unary_unary(
|
159
164
|
'/modal.client.ModalClient/ContainerLog',
|
160
165
|
request_serializer=modal__proto_dot_api__pb2.ContainerLogRequest.SerializeToString,
|
@@ -260,6 +265,11 @@ class ModalClientStub(object):
|
|
260
265
|
request_serializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.SerializeToString,
|
261
266
|
response_deserializer=modal__proto_dot_api__pb2.EnvironmentListItem.FromString,
|
262
267
|
)
|
268
|
+
self.FunctionAsyncInvoke = channel.unary_unary(
|
269
|
+
'/modal.client.ModalClient/FunctionAsyncInvoke',
|
270
|
+
request_serializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.SerializeToString,
|
271
|
+
response_deserializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeResponse.FromString,
|
272
|
+
)
|
263
273
|
self.FunctionBindParams = channel.unary_unary(
|
264
274
|
'/modal.client.ModalClient/FunctionBindParams',
|
265
275
|
request_serializer=modal__proto_dot_api__pb2.FunctionBindParamsRequest.SerializeToString,
|
@@ -843,6 +853,12 @@ class ModalClientServicer(object):
|
|
843
853
|
context.set_details('Method not implemented!')
|
844
854
|
raise NotImplementedError('Method not implemented!')
|
845
855
|
|
856
|
+
def ContainerHello(self, request, context):
|
857
|
+
"""Missing associated documentation comment in .proto file."""
|
858
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
859
|
+
context.set_details('Method not implemented!')
|
860
|
+
raise NotImplementedError('Method not implemented!')
|
861
|
+
|
846
862
|
def ContainerLog(self, request, context):
|
847
863
|
"""Missing associated documentation comment in .proto file."""
|
848
864
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -972,13 +988,19 @@ class ModalClientServicer(object):
|
|
972
988
|
context.set_details('Method not implemented!')
|
973
989
|
raise NotImplementedError('Method not implemented!')
|
974
990
|
|
975
|
-
def
|
991
|
+
def FunctionAsyncInvoke(self, request, context):
|
976
992
|
"""Functions
|
977
993
|
"""
|
978
994
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
979
995
|
context.set_details('Method not implemented!')
|
980
996
|
raise NotImplementedError('Method not implemented!')
|
981
997
|
|
998
|
+
def FunctionBindParams(self, request, context):
|
999
|
+
"""Missing associated documentation comment in .proto file."""
|
1000
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1001
|
+
context.set_details('Method not implemented!')
|
1002
|
+
raise NotImplementedError('Method not implemented!')
|
1003
|
+
|
982
1004
|
def FunctionCallCancel(self, request, context):
|
983
1005
|
"""Missing associated documentation comment in .proto file."""
|
984
1006
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -1618,6 +1640,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
1618
1640
|
request_deserializer=modal__proto_dot_api__pb2.ContainerHeartbeatRequest.FromString,
|
1619
1641
|
response_serializer=modal__proto_dot_api__pb2.ContainerHeartbeatResponse.SerializeToString,
|
1620
1642
|
),
|
1643
|
+
'ContainerHello': grpc.unary_unary_rpc_method_handler(
|
1644
|
+
servicer.ContainerHello,
|
1645
|
+
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
1646
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
1647
|
+
),
|
1621
1648
|
'ContainerLog': grpc.unary_unary_rpc_method_handler(
|
1622
1649
|
servicer.ContainerLog,
|
1623
1650
|
request_deserializer=modal__proto_dot_api__pb2.ContainerLogRequest.FromString,
|
@@ -1723,6 +1750,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
1723
1750
|
request_deserializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.FromString,
|
1724
1751
|
response_serializer=modal__proto_dot_api__pb2.EnvironmentListItem.SerializeToString,
|
1725
1752
|
),
|
1753
|
+
'FunctionAsyncInvoke': grpc.unary_unary_rpc_method_handler(
|
1754
|
+
servicer.FunctionAsyncInvoke,
|
1755
|
+
request_deserializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.FromString,
|
1756
|
+
response_serializer=modal__proto_dot_api__pb2.FunctionAsyncInvokeResponse.SerializeToString,
|
1757
|
+
),
|
1726
1758
|
'FunctionBindParams': grpc.unary_unary_rpc_method_handler(
|
1727
1759
|
servicer.FunctionBindParams,
|
1728
1760
|
request_deserializer=modal__proto_dot_api__pb2.FunctionBindParamsRequest.FromString,
|
@@ -2614,6 +2646,23 @@ class ModalClient(object):
|
|
2614
2646
|
options, channel_credentials,
|
2615
2647
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
2616
2648
|
|
2649
|
+
@staticmethod
|
2650
|
+
def ContainerHello(request,
|
2651
|
+
target,
|
2652
|
+
options=(),
|
2653
|
+
channel_credentials=None,
|
2654
|
+
call_credentials=None,
|
2655
|
+
insecure=False,
|
2656
|
+
compression=None,
|
2657
|
+
wait_for_ready=None,
|
2658
|
+
timeout=None,
|
2659
|
+
metadata=None):
|
2660
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/ContainerHello',
|
2661
|
+
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2662
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
2663
|
+
options, channel_credentials,
|
2664
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
2665
|
+
|
2617
2666
|
@staticmethod
|
2618
2667
|
def ContainerLog(request,
|
2619
2668
|
target,
|
@@ -2971,6 +3020,23 @@ class ModalClient(object):
|
|
2971
3020
|
options, channel_credentials,
|
2972
3021
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
2973
3022
|
|
3023
|
+
@staticmethod
|
3024
|
+
def FunctionAsyncInvoke(request,
|
3025
|
+
target,
|
3026
|
+
options=(),
|
3027
|
+
channel_credentials=None,
|
3028
|
+
call_credentials=None,
|
3029
|
+
insecure=False,
|
3030
|
+
compression=None,
|
3031
|
+
wait_for_ready=None,
|
3032
|
+
timeout=None,
|
3033
|
+
metadata=None):
|
3034
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/FunctionAsyncInvoke',
|
3035
|
+
modal__proto_dot_api__pb2.FunctionAsyncInvokeRequest.SerializeToString,
|
3036
|
+
modal__proto_dot_api__pb2.FunctionAsyncInvokeResponse.FromString,
|
3037
|
+
options, channel_credentials,
|
3038
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3039
|
+
|
2974
3040
|
@staticmethod
|
2975
3041
|
def FunctionBindParams(request,
|
2976
3042
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -127,6 +127,10 @@ class ModalClientStub:
|
|
127
127
|
modal_proto.api_pb2.ContainerHeartbeatRequest,
|
128
128
|
modal_proto.api_pb2.ContainerHeartbeatResponse,
|
129
129
|
]
|
130
|
+
ContainerHello: grpc.UnaryUnaryMultiCallable[
|
131
|
+
google.protobuf.empty_pb2.Empty,
|
132
|
+
google.protobuf.empty_pb2.Empty,
|
133
|
+
]
|
130
134
|
ContainerLog: grpc.UnaryUnaryMultiCallable[
|
131
135
|
modal_proto.api_pb2.ContainerLogRequest,
|
132
136
|
google.protobuf.empty_pb2.Empty,
|
@@ -214,11 +218,15 @@ class ModalClientStub:
|
|
214
218
|
modal_proto.api_pb2.EnvironmentUpdateRequest,
|
215
219
|
modal_proto.api_pb2.EnvironmentListItem,
|
216
220
|
]
|
221
|
+
FunctionAsyncInvoke: grpc.UnaryUnaryMultiCallable[
|
222
|
+
modal_proto.api_pb2.FunctionAsyncInvokeRequest,
|
223
|
+
modal_proto.api_pb2.FunctionAsyncInvokeResponse,
|
224
|
+
]
|
225
|
+
"""Functions"""
|
217
226
|
FunctionBindParams: grpc.UnaryUnaryMultiCallable[
|
218
227
|
modal_proto.api_pb2.FunctionBindParamsRequest,
|
219
228
|
modal_proto.api_pb2.FunctionBindParamsResponse,
|
220
229
|
]
|
221
|
-
"""Functions"""
|
222
230
|
FunctionCallCancel: grpc.UnaryUnaryMultiCallable[
|
223
231
|
modal_proto.api_pb2.FunctionCallCancelRequest,
|
224
232
|
google.protobuf.empty_pb2.Empty,
|
@@ -731,6 +739,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
731
739
|
context: grpc.ServicerContext,
|
732
740
|
) -> modal_proto.api_pb2.ContainerHeartbeatResponse: ...
|
733
741
|
@abc.abstractmethod
|
742
|
+
def ContainerHello(
|
743
|
+
self,
|
744
|
+
request: google.protobuf.empty_pb2.Empty,
|
745
|
+
context: grpc.ServicerContext,
|
746
|
+
) -> google.protobuf.empty_pb2.Empty: ...
|
747
|
+
@abc.abstractmethod
|
734
748
|
def ContainerLog(
|
735
749
|
self,
|
736
750
|
request: modal_proto.api_pb2.ContainerLogRequest,
|
@@ -860,12 +874,18 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
860
874
|
context: grpc.ServicerContext,
|
861
875
|
) -> modal_proto.api_pb2.EnvironmentListItem: ...
|
862
876
|
@abc.abstractmethod
|
877
|
+
def FunctionAsyncInvoke(
|
878
|
+
self,
|
879
|
+
request: modal_proto.api_pb2.FunctionAsyncInvokeRequest,
|
880
|
+
context: grpc.ServicerContext,
|
881
|
+
) -> modal_proto.api_pb2.FunctionAsyncInvokeResponse:
|
882
|
+
"""Functions"""
|
883
|
+
@abc.abstractmethod
|
863
884
|
def FunctionBindParams(
|
864
885
|
self,
|
865
886
|
request: modal_proto.api_pb2.FunctionBindParamsRequest,
|
866
887
|
context: grpc.ServicerContext,
|
867
|
-
) -> modal_proto.api_pb2.FunctionBindParamsResponse:
|
868
|
-
"""Functions"""
|
888
|
+
) -> modal_proto.api_pb2.FunctionBindParamsResponse: ...
|
869
889
|
@abc.abstractmethod
|
870
890
|
def FunctionCallCancel(
|
871
891
|
self,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -40,6 +40,7 @@ class ModalClientModal:
|
|
40
40
|
self.ContainerFilesystemExec = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerFilesystemExec, client)
|
41
41
|
self.ContainerFilesystemExecGetOutput = modal.client.UnaryStreamWrapper(grpclib_stub.ContainerFilesystemExecGetOutput, client)
|
42
42
|
self.ContainerHeartbeat = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerHeartbeat, client)
|
43
|
+
self.ContainerHello = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerHello, client)
|
43
44
|
self.ContainerLog = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerLog, client)
|
44
45
|
self.ContainerStop = modal.client.UnaryUnaryWrapper(grpclib_stub.ContainerStop, client)
|
45
46
|
self.DictClear = modal.client.UnaryUnaryWrapper(grpclib_stub.DictClear, client)
|
@@ -61,6 +62,7 @@ class ModalClientModal:
|
|
61
62
|
self.EnvironmentGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentGetOrCreate, client)
|
62
63
|
self.EnvironmentList = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentList, client)
|
63
64
|
self.EnvironmentUpdate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentUpdate, client)
|
65
|
+
self.FunctionAsyncInvoke = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionAsyncInvoke, client)
|
64
66
|
self.FunctionBindParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionBindParams, client)
|
65
67
|
self.FunctionCallCancel = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallCancel, client)
|
66
68
|
self.FunctionCallGetDataIn = modal.client.UnaryStreamWrapper(grpclib_stub.FunctionCallGetDataIn, client)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|