modal 1.1.5.dev44__py3-none-any.whl → 1.1.5.dev46__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/_container_entrypoint.py +19 -41
- modal/_functions.py +21 -14
- modal/_runtime/container_io_manager.py +252 -150
- modal/_runtime/container_io_manager.pyi +32 -48
- modal/_runtime/user_code_imports.py +15 -5
- modal/_serialization.py +57 -1
- modal/_utils/blob_utils.py +4 -0
- modal/_utils/function_utils.py +22 -8
- modal/app.py +4 -0
- modal/app.pyi +4 -0
- modal/client.pyi +2 -2
- modal/config.py +5 -0
- modal/functions.pyi +1 -0
- modal/image.py +10 -3
- modal/parallel_map.py +2 -4
- {modal-1.1.5.dev44.dist-info → modal-1.1.5.dev46.dist-info}/METADATA +2 -1
- {modal-1.1.5.dev44.dist-info → modal-1.1.5.dev46.dist-info}/RECORD +29 -29
- modal_proto/api.proto +13 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +343 -323
- modal_proto/api_pb2.pyi +36 -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.1.5.dev44.dist-info → modal-1.1.5.dev46.dist-info}/WHEEL +0 -0
- {modal-1.1.5.dev44.dist-info → modal-1.1.5.dev46.dist-info}/entry_points.txt +0 -0
- {modal-1.1.5.dev44.dist-info → modal-1.1.5.dev46.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.5.dev44.dist-info → modal-1.1.5.dev46.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -8785,6 +8785,42 @@ class SandboxCreateResponse(google.protobuf.message.Message):
|
|
|
8785
8785
|
|
|
8786
8786
|
global___SandboxCreateResponse = SandboxCreateResponse
|
|
8787
8787
|
|
|
8788
|
+
class SandboxGetCommandRouterAccessRequest(google.protobuf.message.Message):
|
|
8789
|
+
"""Used to get a JWT and URL for direct access to a sandbox router server
|
|
8790
|
+
running on the modal-worker, so the client can issue exec commands (and other
|
|
8791
|
+
operations as they become available) directly to the worker.
|
|
8792
|
+
"""
|
|
8793
|
+
|
|
8794
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8795
|
+
|
|
8796
|
+
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
|
8797
|
+
sandbox_id: builtins.str
|
|
8798
|
+
def __init__(
|
|
8799
|
+
self,
|
|
8800
|
+
*,
|
|
8801
|
+
sandbox_id: builtins.str = ...,
|
|
8802
|
+
) -> None: ...
|
|
8803
|
+
def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id"]) -> None: ...
|
|
8804
|
+
|
|
8805
|
+
global___SandboxGetCommandRouterAccessRequest = SandboxGetCommandRouterAccessRequest
|
|
8806
|
+
|
|
8807
|
+
class SandboxGetCommandRouterAccessResponse(google.protobuf.message.Message):
|
|
8808
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8809
|
+
|
|
8810
|
+
JWT_FIELD_NUMBER: builtins.int
|
|
8811
|
+
URL_FIELD_NUMBER: builtins.int
|
|
8812
|
+
jwt: builtins.str
|
|
8813
|
+
url: builtins.str
|
|
8814
|
+
def __init__(
|
|
8815
|
+
self,
|
|
8816
|
+
*,
|
|
8817
|
+
jwt: builtins.str = ...,
|
|
8818
|
+
url: builtins.str = ...,
|
|
8819
|
+
) -> None: ...
|
|
8820
|
+
def ClearField(self, field_name: typing_extensions.Literal["jwt", b"jwt", "url", b"url"]) -> None: ...
|
|
8821
|
+
|
|
8822
|
+
global___SandboxGetCommandRouterAccessResponse = SandboxGetCommandRouterAccessResponse
|
|
8823
|
+
|
|
8788
8824
|
class SandboxGetFromNameRequest(google.protobuf.message.Message):
|
|
8789
8825
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
8790
8826
|
|
modal_proto/api_pb2_grpc.py
CHANGED
|
@@ -580,6 +580,11 @@ class ModalClientStub(object):
|
|
|
580
580
|
request_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.SerializeToString,
|
|
581
581
|
response_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.FromString,
|
|
582
582
|
)
|
|
583
|
+
self.SandboxGetCommandRouterAccess = channel.unary_unary(
|
|
584
|
+
'/modal.client.ModalClient/SandboxGetCommandRouterAccess',
|
|
585
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxGetCommandRouterAccessRequest.SerializeToString,
|
|
586
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxGetCommandRouterAccessResponse.FromString,
|
|
587
|
+
)
|
|
583
588
|
self.SandboxGetFromName = channel.unary_unary(
|
|
584
589
|
'/modal.client.ModalClient/SandboxGetFromName',
|
|
585
590
|
request_serializer=modal__proto_dot_api__pb2.SandboxGetFromNameRequest.SerializeToString,
|
|
@@ -1572,6 +1577,12 @@ class ModalClientServicer(object):
|
|
|
1572
1577
|
context.set_details('Method not implemented!')
|
|
1573
1578
|
raise NotImplementedError('Method not implemented!')
|
|
1574
1579
|
|
|
1580
|
+
def SandboxGetCommandRouterAccess(self, request, context):
|
|
1581
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1582
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1583
|
+
context.set_details('Method not implemented!')
|
|
1584
|
+
raise NotImplementedError('Method not implemented!')
|
|
1585
|
+
|
|
1575
1586
|
def SandboxGetFromName(self, request, context):
|
|
1576
1587
|
"""Missing associated documentation comment in .proto file."""
|
|
1577
1588
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -2491,6 +2502,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
|
2491
2502
|
request_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.FromString,
|
|
2492
2503
|
response_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.SerializeToString,
|
|
2493
2504
|
),
|
|
2505
|
+
'SandboxGetCommandRouterAccess': grpc.unary_unary_rpc_method_handler(
|
|
2506
|
+
servicer.SandboxGetCommandRouterAccess,
|
|
2507
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxGetCommandRouterAccessRequest.FromString,
|
|
2508
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxGetCommandRouterAccessResponse.SerializeToString,
|
|
2509
|
+
),
|
|
2494
2510
|
'SandboxGetFromName': grpc.unary_unary_rpc_method_handler(
|
|
2495
2511
|
servicer.SandboxGetFromName,
|
|
2496
2512
|
request_deserializer=modal__proto_dot_api__pb2.SandboxGetFromNameRequest.FromString,
|
|
@@ -4707,6 +4723,23 @@ class ModalClient(object):
|
|
|
4707
4723
|
options, channel_credentials,
|
|
4708
4724
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
4709
4725
|
|
|
4726
|
+
@staticmethod
|
|
4727
|
+
def SandboxGetCommandRouterAccess(request,
|
|
4728
|
+
target,
|
|
4729
|
+
options=(),
|
|
4730
|
+
channel_credentials=None,
|
|
4731
|
+
call_credentials=None,
|
|
4732
|
+
insecure=False,
|
|
4733
|
+
compression=None,
|
|
4734
|
+
wait_for_ready=None,
|
|
4735
|
+
timeout=None,
|
|
4736
|
+
metadata=None):
|
|
4737
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxGetCommandRouterAccess',
|
|
4738
|
+
modal__proto_dot_api__pb2.SandboxGetCommandRouterAccessRequest.SerializeToString,
|
|
4739
|
+
modal__proto_dot_api__pb2.SandboxGetCommandRouterAccessResponse.FromString,
|
|
4740
|
+
options, channel_credentials,
|
|
4741
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
4742
|
+
|
|
4710
4743
|
@staticmethod
|
|
4711
4744
|
def SandboxGetFromName(request,
|
|
4712
4745
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
|
@@ -486,6 +486,10 @@ class ModalClientStub:
|
|
|
486
486
|
modal_proto.api_pb2.SandboxCreateConnectTokenRequest,
|
|
487
487
|
modal_proto.api_pb2.SandboxCreateConnectTokenResponse,
|
|
488
488
|
]
|
|
489
|
+
SandboxGetCommandRouterAccess: grpc.UnaryUnaryMultiCallable[
|
|
490
|
+
modal_proto.api_pb2.SandboxGetCommandRouterAccessRequest,
|
|
491
|
+
modal_proto.api_pb2.SandboxGetCommandRouterAccessResponse,
|
|
492
|
+
]
|
|
489
493
|
SandboxGetFromName: grpc.UnaryUnaryMultiCallable[
|
|
490
494
|
modal_proto.api_pb2.SandboxGetFromNameRequest,
|
|
491
495
|
modal_proto.api_pb2.SandboxGetFromNameResponse,
|
|
@@ -1428,6 +1432,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
|
1428
1432
|
context: grpc.ServicerContext,
|
|
1429
1433
|
) -> modal_proto.api_pb2.SandboxCreateConnectTokenResponse: ...
|
|
1430
1434
|
@abc.abstractmethod
|
|
1435
|
+
def SandboxGetCommandRouterAccess(
|
|
1436
|
+
self,
|
|
1437
|
+
request: modal_proto.api_pb2.SandboxGetCommandRouterAccessRequest,
|
|
1438
|
+
context: grpc.ServicerContext,
|
|
1439
|
+
) -> modal_proto.api_pb2.SandboxGetCommandRouterAccessResponse: ...
|
|
1440
|
+
@abc.abstractmethod
|
|
1431
1441
|
def SandboxGetFromName(
|
|
1432
1442
|
self,
|
|
1433
1443
|
request: modal_proto.api_pb2.SandboxGetFromNameRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
|
@@ -131,6 +131,7 @@ class ModalClientModal:
|
|
|
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
133
|
self.SandboxCreateConnectToken = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreateConnectToken, client, server_url)
|
|
134
|
+
self.SandboxGetCommandRouterAccess = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetCommandRouterAccess, client, server_url)
|
|
134
135
|
self.SandboxGetFromName = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetFromName, client, server_url)
|
|
135
136
|
self.SandboxGetLogs = modal.client.UnaryStreamWrapper(grpclib_stub.SandboxGetLogs, client, server_url)
|
|
136
137
|
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
|