modal 1.1.5.dev12__py3-none-any.whl → 1.1.5.dev14__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.dev12.dist-info → modal-1.1.5.dev14.dist-info}/METADATA +1 -1
- {modal-1.1.5.dev12.dist-info → modal-1.1.5.dev14.dist-info}/RECORD +16 -16
- modal_proto/api.proto +8 -3
- modal_proto/api_grpc.py +9 -9
- modal_proto/api_pb2.py +661 -651
- modal_proto/api_pb2.pyi +21 -4
- modal_proto/api_pb2_grpc.py +13 -13
- modal_proto/api_pb2_grpc.pyi +6 -6
- modal_proto/modal_api_grpc.py +1 -1
- modal_version/__init__.py +1 -1
- {modal-1.1.5.dev12.dist-info → modal-1.1.5.dev14.dist-info}/WHEEL +0 -0
- {modal-1.1.5.dev12.dist-info → modal-1.1.5.dev14.dist-info}/entry_points.txt +0 -0
- {modal-1.1.5.dev12.dist-info → modal-1.1.5.dev14.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.5.dev12.dist-info → modal-1.1.5.dev14.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -4338,6 +4338,23 @@ class FlashContainerRegisterResponse(google.protobuf.message.Message):
|
|
4338
4338
|
|
4339
4339
|
global___FlashContainerRegisterResponse = FlashContainerRegisterResponse
|
4340
4340
|
|
4341
|
+
class FlashProxyUpstreamRequest(google.protobuf.message.Message):
|
4342
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
4343
|
+
|
4344
|
+
UPSTREAM_REQUESTS_FIELD_NUMBER: builtins.int
|
4345
|
+
TIMESTAMP_FIELD_NUMBER: builtins.int
|
4346
|
+
upstream_requests: builtins.int
|
4347
|
+
timestamp: builtins.float
|
4348
|
+
def __init__(
|
4349
|
+
self,
|
4350
|
+
*,
|
4351
|
+
upstream_requests: builtins.int = ...,
|
4352
|
+
timestamp: builtins.float = ...,
|
4353
|
+
) -> None: ...
|
4354
|
+
def ClearField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp", "upstream_requests", b"upstream_requests"]) -> None: ...
|
4355
|
+
|
4356
|
+
global___FlashProxyUpstreamRequest = FlashProxyUpstreamRequest
|
4357
|
+
|
4341
4358
|
class Function(google.protobuf.message.Message):
|
4342
4359
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
4343
4360
|
|
@@ -8568,7 +8585,7 @@ class Sandbox(google.protobuf.message.Message):
|
|
8568
8585
|
|
8569
8586
|
global___Sandbox = Sandbox
|
8570
8587
|
|
8571
|
-
class
|
8588
|
+
class SandboxCreateConnectTokenRequest(google.protobuf.message.Message):
|
8572
8589
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8573
8590
|
|
8574
8591
|
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
@@ -8583,9 +8600,9 @@ class SandboxCreateConnectCredentialsRequest(google.protobuf.message.Message):
|
|
8583
8600
|
) -> None: ...
|
8584
8601
|
def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "sandbox_id", b"sandbox_id"]) -> None: ...
|
8585
8602
|
|
8586
|
-
|
8603
|
+
global___SandboxCreateConnectTokenRequest = SandboxCreateConnectTokenRequest
|
8587
8604
|
|
8588
|
-
class
|
8605
|
+
class SandboxCreateConnectTokenResponse(google.protobuf.message.Message):
|
8589
8606
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8590
8607
|
|
8591
8608
|
URL_FIELD_NUMBER: builtins.int
|
@@ -8600,7 +8617,7 @@ class SandboxCreateConnectCredentialsResponse(google.protobuf.message.Message):
|
|
8600
8617
|
) -> None: ...
|
8601
8618
|
def ClearField(self, field_name: typing_extensions.Literal["token", b"token", "url", b"url"]) -> None: ...
|
8602
8619
|
|
8603
|
-
|
8620
|
+
global___SandboxCreateConnectTokenResponse = SandboxCreateConnectTokenResponse
|
8604
8621
|
|
8605
8622
|
class SandboxCreateRequest(google.protobuf.message.Message):
|
8606
8623
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -575,10 +575,10 @@ 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.
|
579
|
-
'/modal.client.ModalClient/
|
580
|
-
request_serializer=modal__proto_dot_api__pb2.
|
581
|
-
response_deserializer=modal__proto_dot_api__pb2.
|
578
|
+
self.SandboxCreateConnectToken = channel.unary_unary(
|
579
|
+
'/modal.client.ModalClient/SandboxCreateConnectToken',
|
580
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.SerializeToString,
|
581
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.FromString,
|
582
582
|
)
|
583
583
|
self.SandboxGetFromName = channel.unary_unary(
|
584
584
|
'/modal.client.ModalClient/SandboxGetFromName',
|
@@ -1561,7 +1561,7 @@ class ModalClientServicer(object):
|
|
1561
1561
|
context.set_details('Method not implemented!')
|
1562
1562
|
raise NotImplementedError('Method not implemented!')
|
1563
1563
|
|
1564
|
-
def
|
1564
|
+
def SandboxCreateConnectToken(self, request, context):
|
1565
1565
|
"""Missing associated documentation comment in .proto file."""
|
1566
1566
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1567
1567
|
context.set_details('Method not implemented!')
|
@@ -2475,10 +2475,10 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2475
2475
|
request_deserializer=modal__proto_dot_api__pb2.SandboxCreateRequest.FromString,
|
2476
2476
|
response_serializer=modal__proto_dot_api__pb2.SandboxCreateResponse.SerializeToString,
|
2477
2477
|
),
|
2478
|
-
'
|
2479
|
-
servicer.
|
2480
|
-
request_deserializer=modal__proto_dot_api__pb2.
|
2481
|
-
response_serializer=modal__proto_dot_api__pb2.
|
2478
|
+
'SandboxCreateConnectToken': grpc.unary_unary_rpc_method_handler(
|
2479
|
+
servicer.SandboxCreateConnectToken,
|
2480
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.FromString,
|
2481
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.SerializeToString,
|
2482
2482
|
),
|
2483
2483
|
'SandboxGetFromName': grpc.unary_unary_rpc_method_handler(
|
2484
2484
|
servicer.SandboxGetFromName,
|
@@ -4675,7 +4675,7 @@ class ModalClient(object):
|
|
4675
4675
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4676
4676
|
|
4677
4677
|
@staticmethod
|
4678
|
-
def
|
4678
|
+
def SandboxCreateConnectToken(request,
|
4679
4679
|
target,
|
4680
4680
|
options=(),
|
4681
4681
|
channel_credentials=None,
|
@@ -4685,9 +4685,9 @@ class ModalClient(object):
|
|
4685
4685
|
wait_for_ready=None,
|
4686
4686
|
timeout=None,
|
4687
4687
|
metadata=None):
|
4688
|
-
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/
|
4689
|
-
modal__proto_dot_api__pb2.
|
4690
|
-
modal__proto_dot_api__pb2.
|
4688
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxCreateConnectToken',
|
4689
|
+
modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.SerializeToString,
|
4690
|
+
modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.FromString,
|
4691
4691
|
options, channel_credentials,
|
4692
4692
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4693
4693
|
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -482,9 +482,9 @@ class ModalClientStub:
|
|
482
482
|
modal_proto.api_pb2.SandboxCreateResponse,
|
483
483
|
]
|
484
484
|
"""Sandboxes"""
|
485
|
-
|
486
|
-
modal_proto.api_pb2.
|
487
|
-
modal_proto.api_pb2.
|
485
|
+
SandboxCreateConnectToken: grpc.UnaryUnaryMultiCallable[
|
486
|
+
modal_proto.api_pb2.SandboxCreateConnectTokenRequest,
|
487
|
+
modal_proto.api_pb2.SandboxCreateConnectTokenResponse,
|
488
488
|
]
|
489
489
|
SandboxGetFromName: grpc.UnaryUnaryMultiCallable[
|
490
490
|
modal_proto.api_pb2.SandboxGetFromNameRequest,
|
@@ -1418,11 +1418,11 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1418
1418
|
) -> modal_proto.api_pb2.SandboxCreateResponse:
|
1419
1419
|
"""Sandboxes"""
|
1420
1420
|
@abc.abstractmethod
|
1421
|
-
def
|
1421
|
+
def SandboxCreateConnectToken(
|
1422
1422
|
self,
|
1423
|
-
request: modal_proto.api_pb2.
|
1423
|
+
request: modal_proto.api_pb2.SandboxCreateConnectTokenRequest,
|
1424
1424
|
context: grpc.ServicerContext,
|
1425
|
-
) -> modal_proto.api_pb2.
|
1425
|
+
) -> modal_proto.api_pb2.SandboxCreateConnectTokenResponse: ...
|
1426
1426
|
@abc.abstractmethod
|
1427
1427
|
def SandboxGetFromName(
|
1428
1428
|
self,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -130,7 +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.
|
133
|
+
self.SandboxCreateConnectToken = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreateConnectToken, client, server_url)
|
134
134
|
self.SandboxGetFromName = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetFromName, client, server_url)
|
135
135
|
self.SandboxGetLogs = modal.client.UnaryStreamWrapper(grpclib_stub.SandboxGetLogs, client, server_url)
|
136
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
|