modal 0.67.39__py3-none-any.whl → 0.67.41__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.py +2 -2
- modal/functions.pyi +4 -4
- modal/sandbox.py +13 -11
- modal/sandbox.pyi +3 -3
- {modal-0.67.39.dist-info → modal-0.67.41.dist-info}/METADATA +1 -1
- {modal-0.67.39.dist-info → modal-0.67.41.dist-info}/RECORD +19 -19
- modal_proto/api.proto +12 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +499 -479
- modal_proto/api_pb2.pyi +39 -0
- modal_proto/api_pb2_grpc.py +34 -1
- modal_proto/api_pb2_grpc.pyi +13 -3
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/_version_generated.py +1 -1
- {modal-0.67.39.dist-info → modal-0.67.41.dist-info}/LICENSE +0 -0
- {modal-0.67.39.dist-info → modal-0.67.41.dist-info}/WHEEL +0 -0
- {modal-0.67.39.dist-info → modal-0.67.41.dist-info}/entry_points.txt +0 -0
- {modal-0.67.39.dist-info → modal-0.67.41.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -3768,6 +3768,45 @@ class Function(google.protobuf.message.Message):
|
|
3768
3768
|
|
3769
3769
|
global___Function = Function
|
3770
3770
|
|
3771
|
+
class FunctionAsyncInvokeRequest(google.protobuf.message.Message):
|
3772
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
3773
|
+
|
3774
|
+
FUNCTION_ID_FIELD_NUMBER: builtins.int
|
3775
|
+
PARENT_INPUT_ID_FIELD_NUMBER: builtins.int
|
3776
|
+
INPUT_FIELD_NUMBER: builtins.int
|
3777
|
+
function_id: builtins.str
|
3778
|
+
parent_input_id: builtins.str
|
3779
|
+
@property
|
3780
|
+
def input(self) -> global___FunctionInput: ...
|
3781
|
+
def __init__(
|
3782
|
+
self,
|
3783
|
+
*,
|
3784
|
+
function_id: builtins.str = ...,
|
3785
|
+
parent_input_id: builtins.str = ...,
|
3786
|
+
input: global___FunctionInput | None = ...,
|
3787
|
+
) -> None: ...
|
3788
|
+
def HasField(self, field_name: typing_extensions.Literal["input", b"input"]) -> builtins.bool: ...
|
3789
|
+
def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "input", b"input", "parent_input_id", b"parent_input_id"]) -> None: ...
|
3790
|
+
|
3791
|
+
global___FunctionAsyncInvokeRequest = FunctionAsyncInvokeRequest
|
3792
|
+
|
3793
|
+
class FunctionAsyncInvokeResponse(google.protobuf.message.Message):
|
3794
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
3795
|
+
|
3796
|
+
RETRY_WITH_BLOB_UPLOAD_FIELD_NUMBER: builtins.int
|
3797
|
+
FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
|
3798
|
+
retry_with_blob_upload: builtins.bool
|
3799
|
+
function_call_id: builtins.str
|
3800
|
+
def __init__(
|
3801
|
+
self,
|
3802
|
+
*,
|
3803
|
+
retry_with_blob_upload: builtins.bool = ...,
|
3804
|
+
function_call_id: builtins.str = ...,
|
3805
|
+
) -> None: ...
|
3806
|
+
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: ...
|
3807
|
+
|
3808
|
+
global___FunctionAsyncInvokeResponse = FunctionAsyncInvokeResponse
|
3809
|
+
|
3771
3810
|
class FunctionBindParamsRequest(google.protobuf.message.Message):
|
3772
3811
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
3773
3812
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -265,6 +265,11 @@ class ModalClientStub(object):
|
|
265
265
|
request_serializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.SerializeToString,
|
266
266
|
response_deserializer=modal__proto_dot_api__pb2.EnvironmentListItem.FromString,
|
267
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
|
+
)
|
268
273
|
self.FunctionBindParams = channel.unary_unary(
|
269
274
|
'/modal.client.ModalClient/FunctionBindParams',
|
270
275
|
request_serializer=modal__proto_dot_api__pb2.FunctionBindParamsRequest.SerializeToString,
|
@@ -983,13 +988,19 @@ class ModalClientServicer(object):
|
|
983
988
|
context.set_details('Method not implemented!')
|
984
989
|
raise NotImplementedError('Method not implemented!')
|
985
990
|
|
986
|
-
def
|
991
|
+
def FunctionAsyncInvoke(self, request, context):
|
987
992
|
"""Functions
|
988
993
|
"""
|
989
994
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
990
995
|
context.set_details('Method not implemented!')
|
991
996
|
raise NotImplementedError('Method not implemented!')
|
992
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
|
+
|
993
1004
|
def FunctionCallCancel(self, request, context):
|
994
1005
|
"""Missing associated documentation comment in .proto file."""
|
995
1006
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -1739,6 +1750,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
1739
1750
|
request_deserializer=modal__proto_dot_api__pb2.EnvironmentUpdateRequest.FromString,
|
1740
1751
|
response_serializer=modal__proto_dot_api__pb2.EnvironmentListItem.SerializeToString,
|
1741
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
|
+
),
|
1742
1758
|
'FunctionBindParams': grpc.unary_unary_rpc_method_handler(
|
1743
1759
|
servicer.FunctionBindParams,
|
1744
1760
|
request_deserializer=modal__proto_dot_api__pb2.FunctionBindParamsRequest.FromString,
|
@@ -3004,6 +3020,23 @@ class ModalClient(object):
|
|
3004
3020
|
options, channel_credentials,
|
3005
3021
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3006
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
|
+
|
3007
3040
|
@staticmethod
|
3008
3041
|
def FunctionBindParams(request,
|
3009
3042
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -218,11 +218,15 @@ class ModalClientStub:
|
|
218
218
|
modal_proto.api_pb2.EnvironmentUpdateRequest,
|
219
219
|
modal_proto.api_pb2.EnvironmentListItem,
|
220
220
|
]
|
221
|
+
FunctionAsyncInvoke: grpc.UnaryUnaryMultiCallable[
|
222
|
+
modal_proto.api_pb2.FunctionAsyncInvokeRequest,
|
223
|
+
modal_proto.api_pb2.FunctionAsyncInvokeResponse,
|
224
|
+
]
|
225
|
+
"""Functions"""
|
221
226
|
FunctionBindParams: grpc.UnaryUnaryMultiCallable[
|
222
227
|
modal_proto.api_pb2.FunctionBindParamsRequest,
|
223
228
|
modal_proto.api_pb2.FunctionBindParamsResponse,
|
224
229
|
]
|
225
|
-
"""Functions"""
|
226
230
|
FunctionCallCancel: grpc.UnaryUnaryMultiCallable[
|
227
231
|
modal_proto.api_pb2.FunctionCallCancelRequest,
|
228
232
|
google.protobuf.empty_pb2.Empty,
|
@@ -870,12 +874,18 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
870
874
|
context: grpc.ServicerContext,
|
871
875
|
) -> modal_proto.api_pb2.EnvironmentListItem: ...
|
872
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
|
873
884
|
def FunctionBindParams(
|
874
885
|
self,
|
875
886
|
request: modal_proto.api_pb2.FunctionBindParamsRequest,
|
876
887
|
context: grpc.ServicerContext,
|
877
|
-
) -> modal_proto.api_pb2.FunctionBindParamsResponse:
|
878
|
-
"""Functions"""
|
888
|
+
) -> modal_proto.api_pb2.FunctionBindParamsResponse: ...
|
879
889
|
@abc.abstractmethod
|
880
890
|
def FunctionCallCancel(
|
881
891
|
self,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -62,6 +62,7 @@ class ModalClientModal:
|
|
62
62
|
self.EnvironmentGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentGetOrCreate, client)
|
63
63
|
self.EnvironmentList = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentList, client)
|
64
64
|
self.EnvironmentUpdate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentUpdate, client)
|
65
|
+
self.FunctionAsyncInvoke = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionAsyncInvoke, client)
|
65
66
|
self.FunctionBindParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionBindParams, client)
|
66
67
|
self.FunctionCallCancel = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionCallCancel, client)
|
67
68
|
self.FunctionCallGetDataIn = modal.client.UnaryStreamWrapper(grpclib_stub.FunctionCallGetDataIn, client)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|