modal 1.0.5.dev29__py3-none-any.whl → 1.0.5.dev30__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.pyi +6 -6
- {modal-1.0.5.dev29.dist-info → modal-1.0.5.dev30.dist-info}/METADATA +1 -1
- {modal-1.0.5.dev29.dist-info → modal-1.0.5.dev30.dist-info}/RECORD +16 -16
- modal_proto/api.proto +15 -1
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +624 -593
- modal_proto/api_pb2.pyi +48 -0
- modal_proto/api_pb2_grpc.py +33 -0
- modal_proto/api_pb2_grpc.pyi +10 -0
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/__init__.py +1 -1
- {modal-1.0.5.dev29.dist-info → modal-1.0.5.dev30.dist-info}/WHEEL +0 -0
- {modal-1.0.5.dev29.dist-info → modal-1.0.5.dev30.dist-info}/entry_points.txt +0 -0
- {modal-1.0.5.dev29.dist-info → modal-1.0.5.dev30.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.5.dev29.dist-info → modal-1.0.5.dev30.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -4090,6 +4090,53 @@ class FlashContainerDeregisterRequest(google.protobuf.message.Message):
|
|
4090
4090
|
|
4091
4091
|
global___FlashContainerDeregisterRequest = FlashContainerDeregisterRequest
|
4092
4092
|
|
4093
|
+
class FlashContainerListRequest(google.protobuf.message.Message):
|
4094
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
4095
|
+
|
4096
|
+
FUNCTION_ID_FIELD_NUMBER: builtins.int
|
4097
|
+
function_id: builtins.str
|
4098
|
+
def __init__(
|
4099
|
+
self,
|
4100
|
+
*,
|
4101
|
+
function_id: builtins.str = ...,
|
4102
|
+
) -> None: ...
|
4103
|
+
def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id"]) -> None: ...
|
4104
|
+
|
4105
|
+
global___FlashContainerListRequest = FlashContainerListRequest
|
4106
|
+
|
4107
|
+
class FlashContainerListResponse(google.protobuf.message.Message):
|
4108
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
4109
|
+
|
4110
|
+
class Container(google.protobuf.message.Message):
|
4111
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
4112
|
+
|
4113
|
+
TASK_ID_FIELD_NUMBER: builtins.int
|
4114
|
+
HOST_FIELD_NUMBER: builtins.int
|
4115
|
+
PORT_FIELD_NUMBER: builtins.int
|
4116
|
+
task_id: builtins.str
|
4117
|
+
host: builtins.str
|
4118
|
+
port: builtins.int
|
4119
|
+
def __init__(
|
4120
|
+
self,
|
4121
|
+
*,
|
4122
|
+
task_id: builtins.str = ...,
|
4123
|
+
host: builtins.str = ...,
|
4124
|
+
port: builtins.int = ...,
|
4125
|
+
) -> None: ...
|
4126
|
+
def ClearField(self, field_name: typing_extensions.Literal["host", b"host", "port", b"port", "task_id", b"task_id"]) -> None: ...
|
4127
|
+
|
4128
|
+
CONTAINERS_FIELD_NUMBER: builtins.int
|
4129
|
+
@property
|
4130
|
+
def containers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FlashContainerListResponse.Container]: ...
|
4131
|
+
def __init__(
|
4132
|
+
self,
|
4133
|
+
*,
|
4134
|
+
containers: collections.abc.Iterable[global___FlashContainerListResponse.Container] | None = ...,
|
4135
|
+
) -> None: ...
|
4136
|
+
def ClearField(self, field_name: typing_extensions.Literal["containers", b"containers"]) -> None: ...
|
4137
|
+
|
4138
|
+
global___FlashContainerListResponse = FlashContainerListResponse
|
4139
|
+
|
4093
4140
|
class FlashContainerRegisterRequest(google.protobuf.message.Message):
|
4094
4141
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
4095
4142
|
|
@@ -4099,6 +4146,7 @@ class FlashContainerRegisterRequest(google.protobuf.message.Message):
|
|
4099
4146
|
HOST_FIELD_NUMBER: builtins.int
|
4100
4147
|
PORT_FIELD_NUMBER: builtins.int
|
4101
4148
|
service_name: builtins.str
|
4149
|
+
"""not used?"""
|
4102
4150
|
priority: builtins.int
|
4103
4151
|
weight: builtins.int
|
4104
4152
|
host: builtins.str
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -300,6 +300,11 @@ class ModalClientStub(object):
|
|
300
300
|
request_serializer=modal__proto_dot_api__pb2.FlashContainerDeregisterRequest.SerializeToString,
|
301
301
|
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
302
302
|
)
|
303
|
+
self.FlashContainerList = channel.unary_unary(
|
304
|
+
'/modal.client.ModalClient/FlashContainerList',
|
305
|
+
request_serializer=modal__proto_dot_api__pb2.FlashContainerListRequest.SerializeToString,
|
306
|
+
response_deserializer=modal__proto_dot_api__pb2.FlashContainerListResponse.FromString,
|
307
|
+
)
|
303
308
|
self.FlashContainerRegister = channel.unary_unary(
|
304
309
|
'/modal.client.ModalClient/FlashContainerRegister',
|
305
310
|
request_serializer=modal__proto_dot_api__pb2.FlashContainerRegisterRequest.SerializeToString,
|
@@ -1150,6 +1155,12 @@ class ModalClientServicer(object):
|
|
1150
1155
|
context.set_details('Method not implemented!')
|
1151
1156
|
raise NotImplementedError('Method not implemented!')
|
1152
1157
|
|
1158
|
+
def FlashContainerList(self, request, context):
|
1159
|
+
"""Missing associated documentation comment in .proto file."""
|
1160
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1161
|
+
context.set_details('Method not implemented!')
|
1162
|
+
raise NotImplementedError('Method not implemented!')
|
1163
|
+
|
1153
1164
|
def FlashContainerRegister(self, request, context):
|
1154
1165
|
"""Missing associated documentation comment in .proto file."""
|
1155
1166
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2044,6 +2055,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2044
2055
|
request_deserializer=modal__proto_dot_api__pb2.FlashContainerDeregisterRequest.FromString,
|
2045
2056
|
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
2046
2057
|
),
|
2058
|
+
'FlashContainerList': grpc.unary_unary_rpc_method_handler(
|
2059
|
+
servicer.FlashContainerList,
|
2060
|
+
request_deserializer=modal__proto_dot_api__pb2.FlashContainerListRequest.FromString,
|
2061
|
+
response_serializer=modal__proto_dot_api__pb2.FlashContainerListResponse.SerializeToString,
|
2062
|
+
),
|
2047
2063
|
'FlashContainerRegister': grpc.unary_unary_rpc_method_handler(
|
2048
2064
|
servicer.FlashContainerRegister,
|
2049
2065
|
request_deserializer=modal__proto_dot_api__pb2.FlashContainerRegisterRequest.FromString,
|
@@ -3513,6 +3529,23 @@ class ModalClient(object):
|
|
3513
3529
|
options, channel_credentials,
|
3514
3530
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3515
3531
|
|
3532
|
+
@staticmethod
|
3533
|
+
def FlashContainerList(request,
|
3534
|
+
target,
|
3535
|
+
options=(),
|
3536
|
+
channel_credentials=None,
|
3537
|
+
call_credentials=None,
|
3538
|
+
insecure=False,
|
3539
|
+
compression=None,
|
3540
|
+
wait_for_ready=None,
|
3541
|
+
timeout=None,
|
3542
|
+
metadata=None):
|
3543
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/FlashContainerList',
|
3544
|
+
modal__proto_dot_api__pb2.FlashContainerListRequest.SerializeToString,
|
3545
|
+
modal__proto_dot_api__pb2.FlashContainerListResponse.FromString,
|
3546
|
+
options, channel_credentials,
|
3547
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
3548
|
+
|
3516
3549
|
@staticmethod
|
3517
3550
|
def FlashContainerRegister(request,
|
3518
3551
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -252,6 +252,10 @@ class ModalClientStub:
|
|
252
252
|
google.protobuf.empty_pb2.Empty,
|
253
253
|
]
|
254
254
|
"""Modal Flash (experimental)"""
|
255
|
+
FlashContainerList: grpc.UnaryUnaryMultiCallable[
|
256
|
+
modal_proto.api_pb2.FlashContainerListRequest,
|
257
|
+
modal_proto.api_pb2.FlashContainerListResponse,
|
258
|
+
]
|
255
259
|
FlashContainerRegister: grpc.UnaryUnaryMultiCallable[
|
256
260
|
modal_proto.api_pb2.FlashContainerRegisterRequest,
|
257
261
|
modal_proto.api_pb2.FlashContainerRegisterResponse,
|
@@ -1021,6 +1025,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1021
1025
|
) -> google.protobuf.empty_pb2.Empty:
|
1022
1026
|
"""Modal Flash (experimental)"""
|
1023
1027
|
@abc.abstractmethod
|
1028
|
+
def FlashContainerList(
|
1029
|
+
self,
|
1030
|
+
request: modal_proto.api_pb2.FlashContainerListRequest,
|
1031
|
+
context: grpc.ServicerContext,
|
1032
|
+
) -> modal_proto.api_pb2.FlashContainerListResponse: ...
|
1033
|
+
@abc.abstractmethod
|
1024
1034
|
def FlashContainerRegister(
|
1025
1035
|
self,
|
1026
1036
|
request: modal_proto.api_pb2.FlashContainerRegisterRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -75,6 +75,7 @@ class ModalClientModal:
|
|
75
75
|
self.EnvironmentList = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentList, client, server_url)
|
76
76
|
self.EnvironmentUpdate = modal.client.UnaryUnaryWrapper(grpclib_stub.EnvironmentUpdate, client, server_url)
|
77
77
|
self.FlashContainerDeregister = modal.client.UnaryUnaryWrapper(grpclib_stub.FlashContainerDeregister, client, server_url)
|
78
|
+
self.FlashContainerList = modal.client.UnaryUnaryWrapper(grpclib_stub.FlashContainerList, client, server_url)
|
78
79
|
self.FlashContainerRegister = modal.client.UnaryUnaryWrapper(grpclib_stub.FlashContainerRegister, client, server_url)
|
79
80
|
self.FunctionAsyncInvoke = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionAsyncInvoke, client, server_url)
|
80
81
|
self.FunctionBindParams = modal.client.UnaryUnaryWrapper(grpclib_stub.FunctionBindParams, client, server_url)
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|