modal 1.0.3.dev28__py3-none-any.whl → 1.0.4__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/_partial_function.py +4 -4
- modal/_utils/async_utils.py +45 -16
- modal/cli/network_file_system.py +3 -0
- modal/cli/run.py +7 -0
- modal/cli/volume.py +2 -0
- modal/client.pyi +2 -10
- modal/cls.py +50 -9
- modal/cls.pyi +1 -0
- modal/file_io.py +9 -7
- modal/file_io.pyi +5 -8
- modal/functions.pyi +6 -6
- modal/mount.py +52 -38
- modal/mount.pyi +15 -6
- modal/parallel_map.py +1 -1
- modal/requirements/PREVIEW.txt +16 -15
- modal/requirements/base-images.json +28 -6
- modal/sandbox.py +7 -0
- modal/sandbox.pyi +8 -0
- modal/volume.py +5 -0
- {modal-1.0.3.dev28.dist-info → modal-1.0.4.dist-info}/METADATA +2 -2
- {modal-1.0.3.dev28.dist-info → modal-1.0.4.dist-info}/RECORD +29 -29
- modal_proto/api.proto +4 -0
- modal_proto/api_pb2.py +300 -300
- modal_proto/api_pb2.pyi +9 -2
- modal_version/__init__.py +1 -1
- {modal-1.0.3.dev28.dist-info → modal-1.0.4.dist-info}/WHEEL +0 -0
- {modal-1.0.3.dev28.dist-info → modal-1.0.4.dist-info}/entry_points.txt +0 -0
- {modal-1.0.3.dev28.dist-info → modal-1.0.4.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.3.dev28.dist-info → modal-1.0.4.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -7728,6 +7728,7 @@ class Sandbox(google.protobuf.message.Message):
|
|
7728
7728
|
CLOUD_PROVIDER_STR_FIELD_NUMBER: builtins.int
|
7729
7729
|
RUNSC_RUNTIME_VERSION_FIELD_NUMBER: builtins.int
|
7730
7730
|
RUNTIME_FIELD_NUMBER: builtins.int
|
7731
|
+
VERBOSE_FIELD_NUMBER: builtins.int
|
7731
7732
|
@property
|
7732
7733
|
def entrypoint_args(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
7733
7734
|
@property
|
@@ -7781,6 +7782,8 @@ class Sandbox(google.protobuf.message.Message):
|
|
7781
7782
|
"""
|
7782
7783
|
runtime: builtins.str
|
7783
7784
|
"""If set, overrides the runtime used by the function, either "runc" or "gvisor"."""
|
7785
|
+
verbose: builtins.bool
|
7786
|
+
"""If set, the sandbox will be created with verbose logging enabled."""
|
7784
7787
|
def __init__(
|
7785
7788
|
self,
|
7786
7789
|
*,
|
@@ -7810,9 +7813,10 @@ class Sandbox(google.protobuf.message.Message):
|
|
7810
7813
|
cloud_provider_str: builtins.str = ...,
|
7811
7814
|
runsc_runtime_version: builtins.str | None = ...,
|
7812
7815
|
runtime: builtins.str | None = ...,
|
7816
|
+
verbose: builtins.bool = ...,
|
7813
7817
|
) -> None: ...
|
7814
7818
|
def HasField(self, field_name: typing_extensions.Literal["_proxy_id", b"_proxy_id", "_runsc_runtime_version", b"_runsc_runtime_version", "_runtime", b"_runtime", "_scheduler_placement", b"_scheduler_placement", "_snapshot_version", b"_snapshot_version", "_workdir", b"_workdir", "network_access", b"network_access", "open_ports", b"open_ports", "open_ports_oneof", b"open_ports_oneof", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "resources", b"resources", "runsc_runtime_version", b"runsc_runtime_version", "runtime", b"runtime", "scheduler_placement", b"scheduler_placement", "snapshot_version", b"snapshot_version", "workdir", b"workdir"]) -> builtins.bool: ...
|
7815
|
-
def ClearField(self, field_name: typing_extensions.Literal["_proxy_id", b"_proxy_id", "_runsc_runtime_version", b"_runsc_runtime_version", "_runtime", b"_runtime", "_scheduler_placement", b"_scheduler_placement", "_snapshot_version", b"_snapshot_version", "_workdir", b"_workdir", "block_network", b"block_network", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "enable_snapshot", b"enable_snapshot", "entrypoint_args", b"entrypoint_args", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "mount_ids", b"mount_ids", "network_access", b"network_access", "nfs_mounts", b"nfs_mounts", "open_ports", b"open_ports", "open_ports_oneof", b"open_ports_oneof", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "resources", b"resources", "runsc_runtime_version", b"runsc_runtime_version", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "s3_mounts", b"s3_mounts", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "snapshot_version", b"snapshot_version", "timeout_secs", b"timeout_secs", "volume_mounts", b"volume_mounts", "workdir", b"workdir", "worker_id", b"worker_id"]) -> None: ...
|
7819
|
+
def ClearField(self, field_name: typing_extensions.Literal["_proxy_id", b"_proxy_id", "_runsc_runtime_version", b"_runsc_runtime_version", "_runtime", b"_runtime", "_scheduler_placement", b"_scheduler_placement", "_snapshot_version", b"_snapshot_version", "_workdir", b"_workdir", "block_network", b"block_network", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "enable_snapshot", b"enable_snapshot", "entrypoint_args", b"entrypoint_args", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "mount_ids", b"mount_ids", "network_access", b"network_access", "nfs_mounts", b"nfs_mounts", "open_ports", b"open_ports", "open_ports_oneof", b"open_ports_oneof", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "resources", b"resources", "runsc_runtime_version", b"runsc_runtime_version", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "s3_mounts", b"s3_mounts", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "snapshot_version", b"snapshot_version", "timeout_secs", b"timeout_secs", "verbose", b"verbose", "volume_mounts", b"volume_mounts", "workdir", b"workdir", "worker_id", b"worker_id"]) -> None: ...
|
7816
7820
|
@typing.overload
|
7817
7821
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_proxy_id", b"_proxy_id"]) -> typing_extensions.Literal["proxy_id"] | None: ...
|
7818
7822
|
@typing.overload
|
@@ -9054,6 +9058,7 @@ class TaskInfo(google.protobuf.message.Message):
|
|
9054
9058
|
RESULT_FIELD_NUMBER: builtins.int
|
9055
9059
|
ENQUEUED_AT_FIELD_NUMBER: builtins.int
|
9056
9060
|
GPU_TYPE_FIELD_NUMBER: builtins.int
|
9061
|
+
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
9057
9062
|
id: builtins.str
|
9058
9063
|
started_at: builtins.float
|
9059
9064
|
finished_at: builtins.float
|
@@ -9061,6 +9066,7 @@ class TaskInfo(google.protobuf.message.Message):
|
|
9061
9066
|
def result(self) -> global___GenericResult: ...
|
9062
9067
|
enqueued_at: builtins.float
|
9063
9068
|
gpu_type: builtins.str
|
9069
|
+
sandbox_id: builtins.str
|
9064
9070
|
def __init__(
|
9065
9071
|
self,
|
9066
9072
|
*,
|
@@ -9070,9 +9076,10 @@ class TaskInfo(google.protobuf.message.Message):
|
|
9070
9076
|
result: global___GenericResult | None = ...,
|
9071
9077
|
enqueued_at: builtins.float = ...,
|
9072
9078
|
gpu_type: builtins.str = ...,
|
9079
|
+
sandbox_id: builtins.str = ...,
|
9073
9080
|
) -> None: ...
|
9074
9081
|
def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ...
|
9075
|
-
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", "started_at", b"started_at"]) -> None: ...
|
9082
|
+
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: ...
|
9076
9083
|
|
9077
9084
|
global___TaskInfo = TaskInfo
|
9078
9085
|
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|