modal 1.0.6.dev25__py3-none-any.whl → 1.0.6.dev28__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 +1 -1
- modal/client.pyi +2 -2
- modal/functions.pyi +6 -6
- {modal-1.0.6.dev25.dist-info → modal-1.0.6.dev28.dist-info}/METADATA +1 -1
- {modal-1.0.6.dev25.dist-info → modal-1.0.6.dev28.dist-info}/RECORD +17 -17
- modal_proto/api.proto +10 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +829 -809
- modal_proto/api_pb2.pyi +23 -0
- modal_proto/api_pb2_grpc.py +34 -0
- modal_proto/api_pb2_grpc.pyi +12 -0
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/__init__.py +1 -1
- {modal-1.0.6.dev25.dist-info → modal-1.0.6.dev28.dist-info}/WHEEL +0 -0
- {modal-1.0.6.dev25.dist-info → modal-1.0.6.dev28.dist-info}/entry_points.txt +0 -0
- {modal-1.0.6.dev25.dist-info → modal-1.0.6.dev28.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.6.dev25.dist-info → modal-1.0.6.dev28.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -1952,6 +1952,29 @@ class AttemptStartResponse(google.protobuf.message.Message):
|
|
|
1952
1952
|
|
|
1953
1953
|
global___AttemptStartResponse = AttemptStartResponse
|
|
1954
1954
|
|
|
1955
|
+
class AuthTokenGetRequest(google.protobuf.message.Message):
|
|
1956
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1957
|
+
|
|
1958
|
+
def __init__(
|
|
1959
|
+
self,
|
|
1960
|
+
) -> None: ...
|
|
1961
|
+
|
|
1962
|
+
global___AuthTokenGetRequest = AuthTokenGetRequest
|
|
1963
|
+
|
|
1964
|
+
class AuthTokenGetResponse(google.protobuf.message.Message):
|
|
1965
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1966
|
+
|
|
1967
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
|
1968
|
+
token: builtins.str
|
|
1969
|
+
def __init__(
|
|
1970
|
+
self,
|
|
1971
|
+
*,
|
|
1972
|
+
token: builtins.str = ...,
|
|
1973
|
+
) -> None: ...
|
|
1974
|
+
def ClearField(self, field_name: typing_extensions.Literal["token", b"token"]) -> None: ...
|
|
1975
|
+
|
|
1976
|
+
global___AuthTokenGetResponse = AuthTokenGetResponse
|
|
1977
|
+
|
|
1955
1978
|
class AutoscalerSettings(google.protobuf.message.Message):
|
|
1956
1979
|
"""A collection of user-configurable settings for Function autoscaling
|
|
1957
1980
|
These are used for static configuration and for dynamic autoscaler updates
|
modal_proto/api_pb2_grpc.py
CHANGED
|
@@ -110,6 +110,11 @@ class ModalClientStub(object):
|
|
|
110
110
|
request_serializer=modal__proto_dot_api__pb2.AttemptStartRequest.SerializeToString,
|
|
111
111
|
response_deserializer=modal__proto_dot_api__pb2.AttemptStartResponse.FromString,
|
|
112
112
|
)
|
|
113
|
+
self.AuthTokenGet = channel.unary_unary(
|
|
114
|
+
'/modal.client.ModalClient/AuthTokenGet',
|
|
115
|
+
request_serializer=modal__proto_dot_api__pb2.AuthTokenGetRequest.SerializeToString,
|
|
116
|
+
response_deserializer=modal__proto_dot_api__pb2.AuthTokenGetResponse.FromString,
|
|
117
|
+
)
|
|
113
118
|
self.BlobCreate = channel.unary_unary(
|
|
114
119
|
'/modal.client.ModalClient/BlobCreate',
|
|
115
120
|
request_serializer=modal__proto_dot_api__pb2.BlobCreateRequest.SerializeToString,
|
|
@@ -923,6 +928,13 @@ class ModalClientServicer(object):
|
|
|
923
928
|
context.set_details('Method not implemented!')
|
|
924
929
|
raise NotImplementedError('Method not implemented!')
|
|
925
930
|
|
|
931
|
+
def AuthTokenGet(self, request, context):
|
|
932
|
+
"""Auth Token
|
|
933
|
+
"""
|
|
934
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
935
|
+
context.set_details('Method not implemented!')
|
|
936
|
+
raise NotImplementedError('Method not implemented!')
|
|
937
|
+
|
|
926
938
|
def BlobCreate(self, request, context):
|
|
927
939
|
"""Blobs
|
|
928
940
|
"""
|
|
@@ -1876,6 +1888,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
|
1876
1888
|
request_deserializer=modal__proto_dot_api__pb2.AttemptStartRequest.FromString,
|
|
1877
1889
|
response_serializer=modal__proto_dot_api__pb2.AttemptStartResponse.SerializeToString,
|
|
1878
1890
|
),
|
|
1891
|
+
'AuthTokenGet': grpc.unary_unary_rpc_method_handler(
|
|
1892
|
+
servicer.AuthTokenGet,
|
|
1893
|
+
request_deserializer=modal__proto_dot_api__pb2.AuthTokenGetRequest.FromString,
|
|
1894
|
+
response_serializer=modal__proto_dot_api__pb2.AuthTokenGetResponse.SerializeToString,
|
|
1895
|
+
),
|
|
1879
1896
|
'BlobCreate': grpc.unary_unary_rpc_method_handler(
|
|
1880
1897
|
servicer.BlobCreate,
|
|
1881
1898
|
request_deserializer=modal__proto_dot_api__pb2.BlobCreateRequest.FromString,
|
|
@@ -2899,6 +2916,23 @@ class ModalClient(object):
|
|
|
2899
2916
|
options, channel_credentials,
|
|
2900
2917
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
2901
2918
|
|
|
2919
|
+
@staticmethod
|
|
2920
|
+
def AuthTokenGet(request,
|
|
2921
|
+
target,
|
|
2922
|
+
options=(),
|
|
2923
|
+
channel_credentials=None,
|
|
2924
|
+
call_credentials=None,
|
|
2925
|
+
insecure=False,
|
|
2926
|
+
compression=None,
|
|
2927
|
+
wait_for_ready=None,
|
|
2928
|
+
timeout=None,
|
|
2929
|
+
metadata=None):
|
|
2930
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/AuthTokenGet',
|
|
2931
|
+
modal__proto_dot_api__pb2.AuthTokenGetRequest.SerializeToString,
|
|
2932
|
+
modal__proto_dot_api__pb2.AuthTokenGetResponse.FromString,
|
|
2933
|
+
options, channel_credentials,
|
|
2934
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
2935
|
+
|
|
2902
2936
|
@staticmethod
|
|
2903
2937
|
def BlobCreate(request,
|
|
2904
2938
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
|
@@ -91,6 +91,11 @@ class ModalClientStub:
|
|
|
91
91
|
modal_proto.api_pb2.AttemptStartRequest,
|
|
92
92
|
modal_proto.api_pb2.AttemptStartResponse,
|
|
93
93
|
]
|
|
94
|
+
AuthTokenGet: grpc.UnaryUnaryMultiCallable[
|
|
95
|
+
modal_proto.api_pb2.AuthTokenGetRequest,
|
|
96
|
+
modal_proto.api_pb2.AuthTokenGetResponse,
|
|
97
|
+
]
|
|
98
|
+
"""Auth Token"""
|
|
94
99
|
BlobCreate: grpc.UnaryUnaryMultiCallable[
|
|
95
100
|
modal_proto.api_pb2.BlobCreateRequest,
|
|
96
101
|
modal_proto.api_pb2.BlobCreateResponse,
|
|
@@ -792,6 +797,13 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
|
792
797
|
context: grpc.ServicerContext,
|
|
793
798
|
) -> modal_proto.api_pb2.AttemptStartResponse: ...
|
|
794
799
|
@abc.abstractmethod
|
|
800
|
+
def AuthTokenGet(
|
|
801
|
+
self,
|
|
802
|
+
request: modal_proto.api_pb2.AuthTokenGetRequest,
|
|
803
|
+
context: grpc.ServicerContext,
|
|
804
|
+
) -> modal_proto.api_pb2.AuthTokenGetResponse:
|
|
805
|
+
"""Auth Token"""
|
|
806
|
+
@abc.abstractmethod
|
|
795
807
|
def BlobCreate(
|
|
796
808
|
self,
|
|
797
809
|
request: modal_proto.api_pb2.BlobCreateRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
|
@@ -37,6 +37,7 @@ class ModalClientModal:
|
|
|
37
37
|
self.AttemptAwait = modal.client.UnaryUnaryWrapper(grpclib_stub.AttemptAwait, client, server_url)
|
|
38
38
|
self.AttemptRetry = modal.client.UnaryUnaryWrapper(grpclib_stub.AttemptRetry, client, server_url)
|
|
39
39
|
self.AttemptStart = modal.client.UnaryUnaryWrapper(grpclib_stub.AttemptStart, client, server_url)
|
|
40
|
+
self.AuthTokenGet = modal.client.UnaryUnaryWrapper(grpclib_stub.AuthTokenGet, client, server_url)
|
|
40
41
|
self.BlobCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.BlobCreate, client, server_url)
|
|
41
42
|
self.BlobGet = modal.client.UnaryUnaryWrapper(grpclib_stub.BlobGet, client, server_url)
|
|
42
43
|
self.ClassCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.ClassCreate, client, server_url)
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|