modal 1.1.1.dev17__py3-none-any.whl → 1.1.1.dev19__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/client.pyi +2 -2
- modal/functions.pyi +6 -6
- {modal-1.1.1.dev17.dist-info → modal-1.1.1.dev19.dist-info}/METADATA +1 -1
- {modal-1.1.1.dev17.dist-info → modal-1.1.1.dev19.dist-info}/RECORD +16 -16
- modal_proto/api.proto +19 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +471 -443
- modal_proto/api_pb2.pyi +59 -1
- 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.1.dev17.dist-info → modal-1.1.1.dev19.dist-info}/WHEEL +0 -0
- {modal-1.1.1.dev17.dist-info → modal-1.1.1.dev19.dist-info}/entry_points.txt +0 -0
- {modal-1.1.1.dev17.dist-info → modal-1.1.1.dev19.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.1.dev17.dist-info → modal-1.1.1.dev19.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -649,6 +649,25 @@ SYSTEM_ERROR_CODE_NOSPC: SystemErrorCode.ValueType # 28
|
|
|
649
649
|
"""ENOSPC: No space left on device"""
|
|
650
650
|
global___SystemErrorCode = SystemErrorCode
|
|
651
651
|
|
|
652
|
+
class _TaskSnapshotBehavior:
|
|
653
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
654
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
655
|
+
|
|
656
|
+
class _TaskSnapshotBehaviorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TaskSnapshotBehavior.ValueType], builtins.type): # noqa: F821
|
|
657
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
658
|
+
TASK_SNAPSHOT_BEHAVIOR_UNSPECIFIED: _TaskSnapshotBehavior.ValueType # 0
|
|
659
|
+
TASK_SNAPSHOT_BEHAVIOR_SNAPSHOT: _TaskSnapshotBehavior.ValueType # 1
|
|
660
|
+
TASK_SNAPSHOT_BEHAVIOR_RESTORE: _TaskSnapshotBehavior.ValueType # 2
|
|
661
|
+
TASK_SNAPSHOT_BEHAVIOR_NONE: _TaskSnapshotBehavior.ValueType # 3
|
|
662
|
+
|
|
663
|
+
class TaskSnapshotBehavior(_TaskSnapshotBehavior, metaclass=_TaskSnapshotBehaviorEnumTypeWrapper): ...
|
|
664
|
+
|
|
665
|
+
TASK_SNAPSHOT_BEHAVIOR_UNSPECIFIED: TaskSnapshotBehavior.ValueType # 0
|
|
666
|
+
TASK_SNAPSHOT_BEHAVIOR_SNAPSHOT: TaskSnapshotBehavior.ValueType # 1
|
|
667
|
+
TASK_SNAPSHOT_BEHAVIOR_RESTORE: TaskSnapshotBehavior.ValueType # 2
|
|
668
|
+
TASK_SNAPSHOT_BEHAVIOR_NONE: TaskSnapshotBehavior.ValueType # 3
|
|
669
|
+
global___TaskSnapshotBehavior = TaskSnapshotBehavior
|
|
670
|
+
|
|
652
671
|
class _TaskState:
|
|
653
672
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
654
673
|
V: typing_extensions.TypeAlias = ValueType
|
|
@@ -6770,6 +6789,42 @@ class MapAwaitResponse(google.protobuf.message.Message):
|
|
|
6770
6789
|
|
|
6771
6790
|
global___MapAwaitResponse = MapAwaitResponse
|
|
6772
6791
|
|
|
6792
|
+
class MapCheckInputsRequest(google.protobuf.message.Message):
|
|
6793
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
6794
|
+
|
|
6795
|
+
LAST_ENTRY_ID_FIELD_NUMBER: builtins.int
|
|
6796
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
|
6797
|
+
ATTEMPT_TOKENS_FIELD_NUMBER: builtins.int
|
|
6798
|
+
last_entry_id: builtins.str
|
|
6799
|
+
timeout: builtins.float
|
|
6800
|
+
@property
|
|
6801
|
+
def attempt_tokens(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
6802
|
+
def __init__(
|
|
6803
|
+
self,
|
|
6804
|
+
*,
|
|
6805
|
+
last_entry_id: builtins.str = ...,
|
|
6806
|
+
timeout: builtins.float = ...,
|
|
6807
|
+
attempt_tokens: collections.abc.Iterable[builtins.str] | None = ...,
|
|
6808
|
+
) -> None: ...
|
|
6809
|
+
def ClearField(self, field_name: typing_extensions.Literal["attempt_tokens", b"attempt_tokens", "last_entry_id", b"last_entry_id", "timeout", b"timeout"]) -> None: ...
|
|
6810
|
+
|
|
6811
|
+
global___MapCheckInputsRequest = MapCheckInputsRequest
|
|
6812
|
+
|
|
6813
|
+
class MapCheckInputsResponse(google.protobuf.message.Message):
|
|
6814
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
6815
|
+
|
|
6816
|
+
LOST_FIELD_NUMBER: builtins.int
|
|
6817
|
+
@property
|
|
6818
|
+
def lost(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ...
|
|
6819
|
+
def __init__(
|
|
6820
|
+
self,
|
|
6821
|
+
*,
|
|
6822
|
+
lost: collections.abc.Iterable[builtins.bool] | None = ...,
|
|
6823
|
+
) -> None: ...
|
|
6824
|
+
def ClearField(self, field_name: typing_extensions.Literal["lost", b"lost"]) -> None: ...
|
|
6825
|
+
|
|
6826
|
+
global___MapCheckInputsResponse = MapCheckInputsResponse
|
|
6827
|
+
|
|
6773
6828
|
class MapStartOrContinueItem(google.protobuf.message.Message):
|
|
6774
6829
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
6775
6830
|
|
|
@@ -9619,6 +9674,7 @@ class TaskInfo(google.protobuf.message.Message):
|
|
|
9619
9674
|
ENQUEUED_AT_FIELD_NUMBER: builtins.int
|
|
9620
9675
|
GPU_TYPE_FIELD_NUMBER: builtins.int
|
|
9621
9676
|
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
|
9677
|
+
SNAPSHOT_BEHAVIOR_FIELD_NUMBER: builtins.int
|
|
9622
9678
|
id: builtins.str
|
|
9623
9679
|
started_at: builtins.float
|
|
9624
9680
|
finished_at: builtins.float
|
|
@@ -9627,6 +9683,7 @@ class TaskInfo(google.protobuf.message.Message):
|
|
|
9627
9683
|
enqueued_at: builtins.float
|
|
9628
9684
|
gpu_type: builtins.str
|
|
9629
9685
|
sandbox_id: builtins.str
|
|
9686
|
+
snapshot_behavior: global___TaskSnapshotBehavior.ValueType
|
|
9630
9687
|
def __init__(
|
|
9631
9688
|
self,
|
|
9632
9689
|
*,
|
|
@@ -9637,9 +9694,10 @@ class TaskInfo(google.protobuf.message.Message):
|
|
|
9637
9694
|
enqueued_at: builtins.float = ...,
|
|
9638
9695
|
gpu_type: builtins.str = ...,
|
|
9639
9696
|
sandbox_id: builtins.str = ...,
|
|
9697
|
+
snapshot_behavior: global___TaskSnapshotBehavior.ValueType = ...,
|
|
9640
9698
|
) -> None: ...
|
|
9641
9699
|
def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ...
|
|
9642
|
-
def ClearField(self, field_name: typing_extensions.Literal["enqueued_at", b"enqueued_at", "finished_at", b"finished_at", "gpu_type", b"gpu_type", "id", b"id", "result", b"result", "sandbox_id", b"sandbox_id", "started_at", b"started_at"]) -> None: ...
|
|
9700
|
+
def ClearField(self, field_name: typing_extensions.Literal["enqueued_at", b"enqueued_at", "finished_at", b"finished_at", "gpu_type", b"gpu_type", "id", b"id", "result", b"result", "sandbox_id", b"sandbox_id", "snapshot_behavior", b"snapshot_behavior", "started_at", b"started_at"]) -> None: ...
|
|
9643
9701
|
|
|
9644
9702
|
global___TaskInfo = TaskInfo
|
|
9645
9703
|
|
modal_proto/api_pb2_grpc.py
CHANGED
|
@@ -450,6 +450,11 @@ class ModalClientStub(object):
|
|
|
450
450
|
request_serializer=modal__proto_dot_api__pb2.MapAwaitRequest.SerializeToString,
|
|
451
451
|
response_deserializer=modal__proto_dot_api__pb2.MapAwaitResponse.FromString,
|
|
452
452
|
)
|
|
453
|
+
self.MapCheckInputs = channel.unary_unary(
|
|
454
|
+
'/modal.client.ModalClient/MapCheckInputs',
|
|
455
|
+
request_serializer=modal__proto_dot_api__pb2.MapCheckInputsRequest.SerializeToString,
|
|
456
|
+
response_deserializer=modal__proto_dot_api__pb2.MapCheckInputsResponse.FromString,
|
|
457
|
+
)
|
|
453
458
|
self.MapStartOrContinue = channel.unary_unary(
|
|
454
459
|
'/modal.client.ModalClient/MapStartOrContinue',
|
|
455
460
|
request_serializer=modal__proto_dot_api__pb2.MapStartOrContinueRequest.SerializeToString,
|
|
@@ -1367,6 +1372,12 @@ class ModalClientServicer(object):
|
|
|
1367
1372
|
context.set_details('Method not implemented!')
|
|
1368
1373
|
raise NotImplementedError('Method not implemented!')
|
|
1369
1374
|
|
|
1375
|
+
def MapCheckInputs(self, request, context):
|
|
1376
|
+
"""Missing associated documentation comment in .proto file."""
|
|
1377
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
1378
|
+
context.set_details('Method not implemented!')
|
|
1379
|
+
raise NotImplementedError('Method not implemented!')
|
|
1380
|
+
|
|
1370
1381
|
def MapStartOrContinue(self, request, context):
|
|
1371
1382
|
"""Missing associated documentation comment in .proto file."""
|
|
1372
1383
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -2262,6 +2273,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
|
2262
2273
|
request_deserializer=modal__proto_dot_api__pb2.MapAwaitRequest.FromString,
|
|
2263
2274
|
response_serializer=modal__proto_dot_api__pb2.MapAwaitResponse.SerializeToString,
|
|
2264
2275
|
),
|
|
2276
|
+
'MapCheckInputs': grpc.unary_unary_rpc_method_handler(
|
|
2277
|
+
servicer.MapCheckInputs,
|
|
2278
|
+
request_deserializer=modal__proto_dot_api__pb2.MapCheckInputsRequest.FromString,
|
|
2279
|
+
response_serializer=modal__proto_dot_api__pb2.MapCheckInputsResponse.SerializeToString,
|
|
2280
|
+
),
|
|
2265
2281
|
'MapStartOrContinue': grpc.unary_unary_rpc_method_handler(
|
|
2266
2282
|
servicer.MapStartOrContinue,
|
|
2267
2283
|
request_deserializer=modal__proto_dot_api__pb2.MapStartOrContinueRequest.FromString,
|
|
@@ -4121,6 +4137,23 @@ class ModalClient(object):
|
|
|
4121
4137
|
options, channel_credentials,
|
|
4122
4138
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
4123
4139
|
|
|
4140
|
+
@staticmethod
|
|
4141
|
+
def MapCheckInputs(request,
|
|
4142
|
+
target,
|
|
4143
|
+
options=(),
|
|
4144
|
+
channel_credentials=None,
|
|
4145
|
+
call_credentials=None,
|
|
4146
|
+
insecure=False,
|
|
4147
|
+
compression=None,
|
|
4148
|
+
wait_for_ready=None,
|
|
4149
|
+
timeout=None,
|
|
4150
|
+
metadata=None):
|
|
4151
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/MapCheckInputs',
|
|
4152
|
+
modal__proto_dot_api__pb2.MapCheckInputsRequest.SerializeToString,
|
|
4153
|
+
modal__proto_dot_api__pb2.MapCheckInputsResponse.FromString,
|
|
4154
|
+
options, channel_credentials,
|
|
4155
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
4156
|
+
|
|
4124
4157
|
@staticmethod
|
|
4125
4158
|
def MapStartOrContinue(request,
|
|
4126
4159
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
|
@@ -379,6 +379,10 @@ class ModalClientStub:
|
|
|
379
379
|
modal_proto.api_pb2.MapAwaitResponse,
|
|
380
380
|
]
|
|
381
381
|
"""Input Plane Map"""
|
|
382
|
+
MapCheckInputs: grpc.UnaryUnaryMultiCallable[
|
|
383
|
+
modal_proto.api_pb2.MapCheckInputsRequest,
|
|
384
|
+
modal_proto.api_pb2.MapCheckInputsResponse,
|
|
385
|
+
]
|
|
382
386
|
MapStartOrContinue: grpc.UnaryUnaryMultiCallable[
|
|
383
387
|
modal_proto.api_pb2.MapStartOrContinueRequest,
|
|
384
388
|
modal_proto.api_pb2.MapStartOrContinueResponse,
|
|
@@ -1234,6 +1238,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
|
1234
1238
|
) -> modal_proto.api_pb2.MapAwaitResponse:
|
|
1235
1239
|
"""Input Plane Map"""
|
|
1236
1240
|
@abc.abstractmethod
|
|
1241
|
+
def MapCheckInputs(
|
|
1242
|
+
self,
|
|
1243
|
+
request: modal_proto.api_pb2.MapCheckInputsRequest,
|
|
1244
|
+
context: grpc.ServicerContext,
|
|
1245
|
+
) -> modal_proto.api_pb2.MapCheckInputsResponse: ...
|
|
1246
|
+
@abc.abstractmethod
|
|
1237
1247
|
def MapStartOrContinue(
|
|
1238
1248
|
self,
|
|
1239
1249
|
request: modal_proto.api_pb2.MapStartOrContinueRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
|
@@ -105,6 +105,7 @@ class ModalClientModal:
|
|
|
105
105
|
self.ImageGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.ImageGetOrCreate, client, server_url)
|
|
106
106
|
self.ImageJoinStreaming = modal.client.UnaryStreamWrapper(grpclib_stub.ImageJoinStreaming, client, server_url)
|
|
107
107
|
self.MapAwait = modal.client.UnaryUnaryWrapper(grpclib_stub.MapAwait, client, server_url)
|
|
108
|
+
self.MapCheckInputs = modal.client.UnaryUnaryWrapper(grpclib_stub.MapCheckInputs, client, server_url)
|
|
108
109
|
self.MapStartOrContinue = modal.client.UnaryUnaryWrapper(grpclib_stub.MapStartOrContinue, client, server_url)
|
|
109
110
|
self.MountGetOrCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.MountGetOrCreate, client, server_url)
|
|
110
111
|
self.MountPutFile = modal.client.UnaryUnaryWrapper(grpclib_stub.MountPutFile, client, server_url)
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|