modal 1.0.2.dev7__py3-none-any.whl → 1.0.3__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/_functions.py +3 -2
- modal/_runtime/container_io_manager.py +8 -14
- modal/_runtime/gpu_memory_snapshot.py +158 -60
- modal/_utils/bytes_io_segment_payload.py +17 -3
- modal/cli/run.py +12 -0
- modal/cli/secret.py +43 -4
- modal/cli/volume.py +6 -1
- modal/client.pyi +2 -10
- modal/experimental/__init__.py +6 -4
- modal/image.py +38 -22
- modal/mount.py +128 -4
- modal/mount.pyi +22 -0
- modal/parallel_map.py +47 -23
- modal/runner.py +2 -7
- modal/sandbox.py +15 -3
- modal/sandbox.pyi +14 -6
- modal/schedule.py +17 -4
- modal/volume.py +17 -49
- modal/volume.pyi +11 -43
- {modal-1.0.2.dev7.dist-info → modal-1.0.3.dist-info}/METADATA +2 -2
- {modal-1.0.2.dev7.dist-info → modal-1.0.3.dist-info}/RECORD +29 -29
- modal_proto/api.proto +19 -4
- modal_proto/api_pb2.py +591 -585
- modal_proto/api_pb2.pyi +32 -6
- modal_version/__init__.py +1 -1
- {modal-1.0.2.dev7.dist-info → modal-1.0.3.dist-info}/WHEEL +0 -0
- {modal-1.0.2.dev7.dist-info → modal-1.0.3.dist-info}/entry_points.txt +0 -0
- {modal-1.0.2.dev7.dist-info → modal-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.2.dev7.dist-info → modal-1.0.3.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -676,6 +676,23 @@ TASK_STATE_PREEMPTED: TaskState.ValueType # 10
|
|
676
676
|
TASK_STATE_LOADING_CHECKPOINT_IMAGE: TaskState.ValueType # 11
|
677
677
|
global___TaskState = TaskState
|
678
678
|
|
679
|
+
class _TunnelType:
|
680
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
681
|
+
V: typing_extensions.TypeAlias = ValueType
|
682
|
+
|
683
|
+
class _TunnelTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TunnelType.ValueType], builtins.type): # noqa: F821
|
684
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
685
|
+
TUNNEL_TYPE_UNSPECIFIED: _TunnelType.ValueType # 0
|
686
|
+
TUNNEL_TYPE_H2: _TunnelType.ValueType # 1
|
687
|
+
"""HTTP/2 tunnel"""
|
688
|
+
|
689
|
+
class TunnelType(_TunnelType, metaclass=_TunnelTypeEnumTypeWrapper): ...
|
690
|
+
|
691
|
+
TUNNEL_TYPE_UNSPECIFIED: TunnelType.ValueType # 0
|
692
|
+
TUNNEL_TYPE_H2: TunnelType.ValueType # 1
|
693
|
+
"""HTTP/2 tunnel"""
|
694
|
+
global___TunnelType = TunnelType
|
695
|
+
|
679
696
|
class _VolumeFsVersion:
|
680
697
|
ValueType = typing.NewType("ValueType", builtins.int)
|
681
698
|
V: typing_extensions.TypeAlias = ValueType
|
@@ -3986,12 +4003,16 @@ class FileEntry(google.protobuf.message.Message):
|
|
3986
4003
|
FILE: FileEntry._FileType.ValueType # 1
|
3987
4004
|
DIRECTORY: FileEntry._FileType.ValueType # 2
|
3988
4005
|
SYMLINK: FileEntry._FileType.ValueType # 3
|
4006
|
+
FIFO: FileEntry._FileType.ValueType # 4
|
4007
|
+
SOCKET: FileEntry._FileType.ValueType # 5
|
3989
4008
|
|
3990
4009
|
class FileType(_FileType, metaclass=_FileTypeEnumTypeWrapper): ...
|
3991
4010
|
UNSPECIFIED: FileEntry.FileType.ValueType # 0
|
3992
4011
|
FILE: FileEntry.FileType.ValueType # 1
|
3993
4012
|
DIRECTORY: FileEntry.FileType.ValueType # 2
|
3994
4013
|
SYMLINK: FileEntry.FileType.ValueType # 3
|
4014
|
+
FIFO: FileEntry.FileType.ValueType # 4
|
4015
|
+
SOCKET: FileEntry.FileType.ValueType # 5
|
3995
4016
|
|
3996
4017
|
PATH_FIELD_NUMBER: builtins.int
|
3997
4018
|
TYPE_FIELD_NUMBER: builtins.int
|
@@ -6292,9 +6313,14 @@ class ImageMetadata(google.protobuf.message.Message):
|
|
6292
6313
|
package name -> version. Empty if missing
|
6293
6314
|
"""
|
6294
6315
|
workdir: builtins.str
|
6295
|
-
"""The
|
6316
|
+
"""The working directory of the image, as an absolute file path.
|
6317
|
+
|
6318
|
+
For most images, this is not set, which means to use the default workdir:
|
6319
|
+
- On function runners, the default is `/root` (home directory).
|
6320
|
+
- For image builds and sandbox environments, it is `/`.
|
6321
|
+
"""
|
6296
6322
|
libc_version_info: builtins.str
|
6297
|
-
"""The image
|
6323
|
+
"""The version of glibc in this image, if any."""
|
6298
6324
|
image_builder_version: builtins.str
|
6299
6325
|
"""The builder version for/with which the image was created."""
|
6300
6326
|
def __init__(
|
@@ -6941,13 +6967,13 @@ class PortSpec(google.protobuf.message.Message):
|
|
6941
6967
|
TUNNEL_TYPE_FIELD_NUMBER: builtins.int
|
6942
6968
|
port: builtins.int
|
6943
6969
|
unencrypted: builtins.bool
|
6944
|
-
tunnel_type:
|
6970
|
+
tunnel_type: global___TunnelType.ValueType
|
6945
6971
|
def __init__(
|
6946
6972
|
self,
|
6947
6973
|
*,
|
6948
6974
|
port: builtins.int = ...,
|
6949
6975
|
unencrypted: builtins.bool = ...,
|
6950
|
-
tunnel_type:
|
6976
|
+
tunnel_type: global___TunnelType.ValueType | None = ...,
|
6951
6977
|
) -> None: ...
|
6952
6978
|
def HasField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "tunnel_type", b"tunnel_type"]) -> builtins.bool: ...
|
6953
6979
|
def ClearField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "port", b"port", "tunnel_type", b"tunnel_type", "unencrypted", b"unencrypted"]) -> None: ...
|
@@ -9379,13 +9405,13 @@ class TunnelStartRequest(google.protobuf.message.Message):
|
|
9379
9405
|
TUNNEL_TYPE_FIELD_NUMBER: builtins.int
|
9380
9406
|
port: builtins.int
|
9381
9407
|
unencrypted: builtins.bool
|
9382
|
-
tunnel_type:
|
9408
|
+
tunnel_type: global___TunnelType.ValueType
|
9383
9409
|
def __init__(
|
9384
9410
|
self,
|
9385
9411
|
*,
|
9386
9412
|
port: builtins.int = ...,
|
9387
9413
|
unencrypted: builtins.bool = ...,
|
9388
|
-
tunnel_type:
|
9414
|
+
tunnel_type: global___TunnelType.ValueType | None = ...,
|
9389
9415
|
) -> None: ...
|
9390
9416
|
def HasField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "tunnel_type", b"tunnel_type"]) -> builtins.bool: ...
|
9391
9417
|
def ClearField(self, field_name: typing_extensions.Literal["_tunnel_type", b"_tunnel_type", "port", b"port", "tunnel_type", b"tunnel_type", "unencrypted", b"unencrypted"]) -> None: ...
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|