modal 0.70.2__py3-none-any.whl → 0.71.5__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/_container_entrypoint.py +23 -15
- modal/_runtime/container_io_manager.py +1 -6
- modal/_utils/function_utils.py +10 -1
- modal/app.py +25 -23
- modal/app.pyi +6 -2
- modal/cli/run.py +1 -1
- modal/client.pyi +2 -2
- modal/exception.py +6 -0
- modal/experimental.py +3 -0
- modal/file_io.py +86 -0
- modal/file_io.pyi +59 -0
- modal/functions.py +20 -5
- modal/functions.pyi +8 -8
- modal/io_streams.py +15 -27
- modal/io_streams_helper.py +53 -0
- modal/runner.py +26 -33
- modal/runner.pyi +6 -3
- modal/running_app.py +4 -11
- modal/sandbox.py +19 -6
- modal/sandbox.pyi +25 -0
- {modal-0.70.2.dist-info → modal-0.71.5.dist-info}/METADATA +1 -1
- {modal-0.70.2.dist-info → modal-0.71.5.dist-info}/RECORD +35 -34
- modal_proto/api.proto +13 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +456 -436
- modal_proto/api_pb2.pyi +41 -1
- modal_proto/api_pb2_grpc.py +34 -1
- modal_proto/api_pb2_grpc.pyi +13 -3
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/__init__.py +1 -1
- modal_version/_version_generated.py +2 -2
- {modal-0.70.2.dist-info → modal-0.71.5.dist-info}/LICENSE +0 -0
- {modal-0.70.2.dist-info → modal-0.71.5.dist-info}/WHEEL +0 -0
- {modal-0.70.2.dist-info → modal-0.71.5.dist-info}/entry_points.txt +0 -0
- {modal-0.70.2.dist-info → modal-0.71.5.dist-info}/top_level.txt +0 -0
modal_proto/api_grpc.py
CHANGED
@@ -309,6 +309,10 @@ class ModalClientBase(abc.ABC):
|
|
309
309
|
async def FunctionUpdateSchedulingParams(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest, modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse]') -> None:
|
310
310
|
pass
|
311
311
|
|
312
|
+
@abc.abstractmethod
|
313
|
+
async def ImageFromId(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ImageFromIdRequest, modal_proto.api_pb2.ImageFromIdResponse]') -> None:
|
314
|
+
pass
|
315
|
+
|
312
316
|
@abc.abstractmethod
|
313
317
|
async def ImageGetOrCreate(self, stream: 'grpclib.server.Stream[modal_proto.api_pb2.ImageGetOrCreateRequest, modal_proto.api_pb2.ImageGetOrCreateResponse]') -> None:
|
314
318
|
pass
|
@@ -989,6 +993,12 @@ class ModalClientBase(abc.ABC):
|
|
989
993
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
|
990
994
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
|
991
995
|
),
|
996
|
+
'/modal.client.ModalClient/ImageFromId': grpclib.const.Handler(
|
997
|
+
self.ImageFromId,
|
998
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
999
|
+
modal_proto.api_pb2.ImageFromIdRequest,
|
1000
|
+
modal_proto.api_pb2.ImageFromIdResponse,
|
1001
|
+
),
|
992
1002
|
'/modal.client.ModalClient/ImageGetOrCreate': grpclib.const.Handler(
|
993
1003
|
self.ImageGetOrCreate,
|
994
1004
|
grpclib.const.Cardinality.UNARY_UNARY,
|
@@ -1793,6 +1803,12 @@ class ModalClientStub:
|
|
1793
1803
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsRequest,
|
1794
1804
|
modal_proto.api_pb2.FunctionUpdateSchedulingParamsResponse,
|
1795
1805
|
)
|
1806
|
+
self.ImageFromId = grpclib.client.UnaryUnaryMethod(
|
1807
|
+
channel,
|
1808
|
+
'/modal.client.ModalClient/ImageFromId',
|
1809
|
+
modal_proto.api_pb2.ImageFromIdRequest,
|
1810
|
+
modal_proto.api_pb2.ImageFromIdResponse,
|
1811
|
+
)
|
1796
1812
|
self.ImageGetOrCreate = grpclib.client.UnaryUnaryMethod(
|
1797
1813
|
channel,
|
1798
1814
|
'/modal.client.ModalClient/ImageGetOrCreate',
|