modal 1.1.5.dev9__py3-none-any.whl → 1.1.5.dev11__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.1.5.dev9.dist-info → modal-1.1.5.dev11.dist-info}/METADATA +1 -1
- {modal-1.1.5.dev9.dist-info → modal-1.1.5.dev11.dist-info}/RECORD +16 -16
- modal_proto/api.proto +11 -2
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +882 -862
- modal_proto/api_pb2.pyi +36 -8
- 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.1.5.dev9.dist-info → modal-1.1.5.dev11.dist-info}/WHEEL +0 -0
- {modal-1.1.5.dev9.dist-info → modal-1.1.5.dev11.dist-info}/entry_points.txt +0 -0
- {modal-1.1.5.dev9.dist-info → modal-1.1.5.dev11.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.5.dev9.dist-info → modal-1.1.5.dev11.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -2006,7 +2006,6 @@ class AutoscalerSettings(google.protobuf.message.Message):
|
|
2006
2006
|
BUFFER_CONTAINERS_FIELD_NUMBER: builtins.int
|
2007
2007
|
SCALEUP_WINDOW_FIELD_NUMBER: builtins.int
|
2008
2008
|
SCALEDOWN_WINDOW_FIELD_NUMBER: builtins.int
|
2009
|
-
TARGET_CONTAINERS_FIELD_NUMBER: builtins.int
|
2010
2009
|
min_containers: builtins.int
|
2011
2010
|
"""Minimum containers when scale-to-zero is not deisired; pka "keep_warm" or "warm_pool_size" """
|
2012
2011
|
max_containers: builtins.int
|
@@ -2017,8 +2016,6 @@ class AutoscalerSettings(google.protobuf.message.Message):
|
|
2017
2016
|
"""Currently unused; a placeholder in case we decide to expose scaleup control to users"""
|
2018
2017
|
scaledown_window: builtins.int
|
2019
2018
|
"""Maximum amount of time a container can be idle before being scaled down, in seconds; pka "container_idle_timeout" """
|
2020
|
-
target_containers: builtins.int
|
2021
|
-
"""Target number of containers autoscaler will try to maintain"""
|
2022
2019
|
def __init__(
|
2023
2020
|
self,
|
2024
2021
|
*,
|
@@ -2027,10 +2024,9 @@ class AutoscalerSettings(google.protobuf.message.Message):
|
|
2027
2024
|
buffer_containers: builtins.int | None = ...,
|
2028
2025
|
scaleup_window: builtins.int | None = ...,
|
2029
2026
|
scaledown_window: builtins.int | None = ...,
|
2030
|
-
target_containers: builtins.int | None = ...,
|
2031
2027
|
) -> None: ...
|
2032
|
-
def HasField(self, field_name: typing_extensions.Literal["_buffer_containers", b"_buffer_containers", "_max_containers", b"_max_containers", "_min_containers", b"_min_containers", "_scaledown_window", b"_scaledown_window", "_scaleup_window", b"_scaleup_window", "
|
2033
|
-
def ClearField(self, field_name: typing_extensions.Literal["_buffer_containers", b"_buffer_containers", "_max_containers", b"_max_containers", "_min_containers", b"_min_containers", "_scaledown_window", b"_scaledown_window", "_scaleup_window", b"_scaleup_window", "
|
2028
|
+
def HasField(self, field_name: typing_extensions.Literal["_buffer_containers", b"_buffer_containers", "_max_containers", b"_max_containers", "_min_containers", b"_min_containers", "_scaledown_window", b"_scaledown_window", "_scaleup_window", b"_scaleup_window", "buffer_containers", b"buffer_containers", "max_containers", b"max_containers", "min_containers", b"min_containers", "scaledown_window", b"scaledown_window", "scaleup_window", b"scaleup_window"]) -> builtins.bool: ...
|
2029
|
+
def ClearField(self, field_name: typing_extensions.Literal["_buffer_containers", b"_buffer_containers", "_max_containers", b"_max_containers", "_min_containers", b"_min_containers", "_scaledown_window", b"_scaledown_window", "_scaleup_window", b"_scaleup_window", "buffer_containers", b"buffer_containers", "max_containers", b"max_containers", "min_containers", b"min_containers", "scaledown_window", b"scaledown_window", "scaleup_window", b"scaleup_window"]) -> None: ...
|
2034
2030
|
@typing.overload
|
2035
2031
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_buffer_containers", b"_buffer_containers"]) -> typing_extensions.Literal["buffer_containers"] | None: ...
|
2036
2032
|
@typing.overload
|
@@ -2041,8 +2037,6 @@ class AutoscalerSettings(google.protobuf.message.Message):
|
|
2041
2037
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_scaledown_window", b"_scaledown_window"]) -> typing_extensions.Literal["scaledown_window"] | None: ...
|
2042
2038
|
@typing.overload
|
2043
2039
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_scaleup_window", b"_scaleup_window"]) -> typing_extensions.Literal["scaleup_window"] | None: ...
|
2044
|
-
@typing.overload
|
2045
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_target_containers", b"_target_containers"]) -> typing_extensions.Literal["target_containers"] | None: ...
|
2046
2040
|
|
2047
2041
|
global___AutoscalerSettings = AutoscalerSettings
|
2048
2042
|
|
@@ -8574,6 +8568,40 @@ class Sandbox(google.protobuf.message.Message):
|
|
8574
8568
|
|
8575
8569
|
global___Sandbox = Sandbox
|
8576
8570
|
|
8571
|
+
class SandboxCreateConnectCredentialsRequest(google.protobuf.message.Message):
|
8572
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8573
|
+
|
8574
|
+
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
8575
|
+
METADATA_FIELD_NUMBER: builtins.int
|
8576
|
+
sandbox_id: builtins.str
|
8577
|
+
metadata: builtins.str
|
8578
|
+
def __init__(
|
8579
|
+
self,
|
8580
|
+
*,
|
8581
|
+
sandbox_id: builtins.str = ...,
|
8582
|
+
metadata: builtins.str = ...,
|
8583
|
+
) -> None: ...
|
8584
|
+
def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "sandbox_id", b"sandbox_id"]) -> None: ...
|
8585
|
+
|
8586
|
+
global___SandboxCreateConnectCredentialsRequest = SandboxCreateConnectCredentialsRequest
|
8587
|
+
|
8588
|
+
class SandboxCreateConnectCredentialsResponse(google.protobuf.message.Message):
|
8589
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8590
|
+
|
8591
|
+
URL_FIELD_NUMBER: builtins.int
|
8592
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
8593
|
+
url: builtins.str
|
8594
|
+
token: builtins.str
|
8595
|
+
def __init__(
|
8596
|
+
self,
|
8597
|
+
*,
|
8598
|
+
url: builtins.str = ...,
|
8599
|
+
token: builtins.str = ...,
|
8600
|
+
) -> None: ...
|
8601
|
+
def ClearField(self, field_name: typing_extensions.Literal["token", b"token", "url", b"url"]) -> None: ...
|
8602
|
+
|
8603
|
+
global___SandboxCreateConnectCredentialsResponse = SandboxCreateConnectCredentialsResponse
|
8604
|
+
|
8577
8605
|
class SandboxCreateRequest(google.protobuf.message.Message):
|
8578
8606
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8579
8607
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -575,6 +575,11 @@ class ModalClientStub(object):
|
|
575
575
|
request_serializer=modal__proto_dot_api__pb2.SandboxCreateRequest.SerializeToString,
|
576
576
|
response_deserializer=modal__proto_dot_api__pb2.SandboxCreateResponse.FromString,
|
577
577
|
)
|
578
|
+
self.SandboxCreateConnectCredentials = channel.unary_unary(
|
579
|
+
'/modal.client.ModalClient/SandboxCreateConnectCredentials',
|
580
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.SerializeToString,
|
581
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.FromString,
|
582
|
+
)
|
578
583
|
self.SandboxGetFromName = channel.unary_unary(
|
579
584
|
'/modal.client.ModalClient/SandboxGetFromName',
|
580
585
|
request_serializer=modal__proto_dot_api__pb2.SandboxGetFromNameRequest.SerializeToString,
|
@@ -1556,6 +1561,12 @@ class ModalClientServicer(object):
|
|
1556
1561
|
context.set_details('Method not implemented!')
|
1557
1562
|
raise NotImplementedError('Method not implemented!')
|
1558
1563
|
|
1564
|
+
def SandboxCreateConnectCredentials(self, request, context):
|
1565
|
+
"""Missing associated documentation comment in .proto file."""
|
1566
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1567
|
+
context.set_details('Method not implemented!')
|
1568
|
+
raise NotImplementedError('Method not implemented!')
|
1569
|
+
|
1559
1570
|
def SandboxGetFromName(self, request, context):
|
1560
1571
|
"""Missing associated documentation comment in .proto file."""
|
1561
1572
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2464,6 +2475,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2464
2475
|
request_deserializer=modal__proto_dot_api__pb2.SandboxCreateRequest.FromString,
|
2465
2476
|
response_serializer=modal__proto_dot_api__pb2.SandboxCreateResponse.SerializeToString,
|
2466
2477
|
),
|
2478
|
+
'SandboxCreateConnectCredentials': grpc.unary_unary_rpc_method_handler(
|
2479
|
+
servicer.SandboxCreateConnectCredentials,
|
2480
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.FromString,
|
2481
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.SerializeToString,
|
2482
|
+
),
|
2467
2483
|
'SandboxGetFromName': grpc.unary_unary_rpc_method_handler(
|
2468
2484
|
servicer.SandboxGetFromName,
|
2469
2485
|
request_deserializer=modal__proto_dot_api__pb2.SandboxGetFromNameRequest.FromString,
|
@@ -4658,6 +4674,23 @@ class ModalClient(object):
|
|
4658
4674
|
options, channel_credentials,
|
4659
4675
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4660
4676
|
|
4677
|
+
@staticmethod
|
4678
|
+
def SandboxCreateConnectCredentials(request,
|
4679
|
+
target,
|
4680
|
+
options=(),
|
4681
|
+
channel_credentials=None,
|
4682
|
+
call_credentials=None,
|
4683
|
+
insecure=False,
|
4684
|
+
compression=None,
|
4685
|
+
wait_for_ready=None,
|
4686
|
+
timeout=None,
|
4687
|
+
metadata=None):
|
4688
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxCreateConnectCredentials',
|
4689
|
+
modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.SerializeToString,
|
4690
|
+
modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.FromString,
|
4691
|
+
options, channel_credentials,
|
4692
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4693
|
+
|
4661
4694
|
@staticmethod
|
4662
4695
|
def SandboxGetFromName(request,
|
4663
4696
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -482,6 +482,10 @@ class ModalClientStub:
|
|
482
482
|
modal_proto.api_pb2.SandboxCreateResponse,
|
483
483
|
]
|
484
484
|
"""Sandboxes"""
|
485
|
+
SandboxCreateConnectCredentials: grpc.UnaryUnaryMultiCallable[
|
486
|
+
modal_proto.api_pb2.SandboxCreateConnectCredentialsRequest,
|
487
|
+
modal_proto.api_pb2.SandboxCreateConnectCredentialsResponse,
|
488
|
+
]
|
485
489
|
SandboxGetFromName: grpc.UnaryUnaryMultiCallable[
|
486
490
|
modal_proto.api_pb2.SandboxGetFromNameRequest,
|
487
491
|
modal_proto.api_pb2.SandboxGetFromNameResponse,
|
@@ -1414,6 +1418,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1414
1418
|
) -> modal_proto.api_pb2.SandboxCreateResponse:
|
1415
1419
|
"""Sandboxes"""
|
1416
1420
|
@abc.abstractmethod
|
1421
|
+
def SandboxCreateConnectCredentials(
|
1422
|
+
self,
|
1423
|
+
request: modal_proto.api_pb2.SandboxCreateConnectCredentialsRequest,
|
1424
|
+
context: grpc.ServicerContext,
|
1425
|
+
) -> modal_proto.api_pb2.SandboxCreateConnectCredentialsResponse: ...
|
1426
|
+
@abc.abstractmethod
|
1417
1427
|
def SandboxGetFromName(
|
1418
1428
|
self,
|
1419
1429
|
request: modal_proto.api_pb2.SandboxGetFromNameRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -130,6 +130,7 @@ class ModalClientModal:
|
|
130
130
|
self.QueueNextItems = modal.client.UnaryUnaryWrapper(grpclib_stub.QueueNextItems, client, server_url)
|
131
131
|
self.QueuePut = modal.client.UnaryUnaryWrapper(grpclib_stub.QueuePut, client, server_url)
|
132
132
|
self.SandboxCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreate, client, server_url)
|
133
|
+
self.SandboxCreateConnectCredentials = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreateConnectCredentials, client, server_url)
|
133
134
|
self.SandboxGetFromName = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetFromName, client, server_url)
|
134
135
|
self.SandboxGetLogs = modal.client.UnaryStreamWrapper(grpclib_stub.SandboxGetLogs, client, server_url)
|
135
136
|
self.SandboxGetResourceUsage = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetResourceUsage, client, server_url)
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|