modal 0.72.33__py3-none-any.whl → 0.72.35__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/client.pyi +2 -2
- modal/functions.py +2 -1
- modal/functions.pyi +6 -6
- modal/gpu.py +16 -21
- modal/sandbox.py +2 -1
- {modal-0.72.33.dist-info → modal-0.72.35.dist-info}/METADATA +1 -1
- {modal-0.72.33.dist-info → modal-0.72.35.dist-info}/RECORD +15 -15
- modal_proto/api.proto +8 -3
- modal_proto/api_pb2.py +532 -532
- modal_proto/api_pb2.pyi +17 -3
- modal_version/_version_generated.py +1 -1
- {modal-0.72.33.dist-info → modal-0.72.35.dist-info}/LICENSE +0 -0
- {modal-0.72.33.dist-info → modal-0.72.35.dist-info}/WHEEL +0 -0
- {modal-0.72.33.dist-info → modal-0.72.35.dist-info}/entry_points.txt +0 -0
- {modal-0.72.33.dist-info → modal-0.72.35.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -3780,6 +3780,7 @@ class Function(google.protobuf.message.Message):
|
|
3780
3780
|
METHOD_DEFINITIONS_FIELD_NUMBER: builtins.int
|
3781
3781
|
METHOD_DEFINITIONS_SET_FIELD_NUMBER: builtins.int
|
3782
3782
|
_EXPERIMENTAL_CUSTOM_SCALING_FIELD_NUMBER: builtins.int
|
3783
|
+
CLOUD_PROVIDER_STR_FIELD_NUMBER: builtins.int
|
3783
3784
|
module_name: builtins.str
|
3784
3785
|
function_name: builtins.str
|
3785
3786
|
@property
|
@@ -3808,6 +3809,7 @@ class Function(google.protobuf.message.Message):
|
|
3808
3809
|
class_serialized: builtins.bytes
|
3809
3810
|
task_idle_timeout_secs: builtins.int
|
3810
3811
|
cloud_provider: global___CloudProvider.ValueType
|
3812
|
+
"""Deprecated at some point"""
|
3811
3813
|
warm_pool_size: builtins.int
|
3812
3814
|
web_url: builtins.str
|
3813
3815
|
@property
|
@@ -3888,6 +3890,8 @@ class Function(google.protobuf.message.Message):
|
|
3888
3890
|
"""Mapping of method names to method definitions, only non-empty for class service functions"""
|
3889
3891
|
method_definitions_set: builtins.bool
|
3890
3892
|
_experimental_custom_scaling: builtins.bool
|
3893
|
+
cloud_provider_str: builtins.str
|
3894
|
+
"""Supersedes cloud_provider"""
|
3891
3895
|
def __init__(
|
3892
3896
|
self,
|
3893
3897
|
*,
|
@@ -3954,9 +3958,10 @@ class Function(google.protobuf.message.Message):
|
|
3954
3958
|
method_definitions: collections.abc.Mapping[builtins.str, global___MethodDefinition] | None = ...,
|
3955
3959
|
method_definitions_set: builtins.bool = ...,
|
3956
3960
|
_experimental_custom_scaling: builtins.bool = ...,
|
3961
|
+
cloud_provider_str: builtins.str = ...,
|
3957
3962
|
) -> None: ...
|
3958
3963
|
def HasField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "checkpoint", b"checkpoint", "class_parameter_info", b"class_parameter_info", "cloud_provider", b"cloud_provider", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
3959
|
-
def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_concurrent_cancellations", b"_experimental_concurrent_cancellations", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_experimental_task_templates", b"_experimental_task_templates", "_experimental_task_templates_enabled", b"_experimental_task_templates_enabled", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "app_name", b"app_name", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "block_network", b"block_network", "checkpoint", b"checkpoint", "checkpointing_enabled", b"checkpointing_enabled", "class_parameter_info", b"class_parameter_info", "class_serialized", b"class_serialized", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "definition_type", b"definition_type", "function_name", b"function_name", "function_serialized", b"function_serialized", "function_type", b"function_type", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "is_auto_snapshot", b"is_auto_snapshot", "is_builder_function", b"is_builder_function", "is_checkpointing_function", b"is_checkpointing_function", "is_class", b"is_class", "is_method", b"is_method", "max_concurrent_inputs", b"max_concurrent_inputs", "max_inputs", b"max_inputs", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "mount_ids", b"mount_ids", "object_dependencies", b"object_dependencies", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "runtime_perf_record", b"runtime_perf_record", "s3_mounts", b"s3_mounts", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "shared_volume_mounts", b"shared_volume_mounts", "snapshot_debug", b"snapshot_debug", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
|
3964
|
+
def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_concurrent_cancellations", b"_experimental_concurrent_cancellations", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_experimental_task_templates", b"_experimental_task_templates", "_experimental_task_templates_enabled", b"_experimental_task_templates_enabled", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "app_name", b"app_name", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "block_network", b"block_network", "checkpoint", b"checkpoint", "checkpointing_enabled", b"checkpointing_enabled", "class_parameter_info", b"class_parameter_info", "class_serialized", b"class_serialized", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "definition_type", b"definition_type", "function_name", b"function_name", "function_serialized", b"function_serialized", "function_type", b"function_type", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "is_auto_snapshot", b"is_auto_snapshot", "is_builder_function", b"is_builder_function", "is_checkpointing_function", b"is_checkpointing_function", "is_class", b"is_class", "is_method", b"is_method", "max_concurrent_inputs", b"max_concurrent_inputs", "max_inputs", b"max_inputs", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "mount_ids", b"mount_ids", "object_dependencies", b"object_dependencies", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "runtime_perf_record", b"runtime_perf_record", "s3_mounts", b"s3_mounts", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "shared_volume_mounts", b"shared_volume_mounts", "snapshot_debug", b"snapshot_debug", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
|
3960
3965
|
@typing.overload
|
3961
3966
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
|
3962
3967
|
@typing.overload
|
@@ -5341,17 +5346,21 @@ class GPUConfig(google.protobuf.message.Message):
|
|
5341
5346
|
TYPE_FIELD_NUMBER: builtins.int
|
5342
5347
|
COUNT_FIELD_NUMBER: builtins.int
|
5343
5348
|
MEMORY_FIELD_NUMBER: builtins.int
|
5349
|
+
GPU_TYPE_FIELD_NUMBER: builtins.int
|
5344
5350
|
type: global___GPUType.ValueType
|
5351
|
+
"""Deprecated, at some point"""
|
5345
5352
|
count: builtins.int
|
5346
5353
|
memory: builtins.int
|
5354
|
+
gpu_type: builtins.str
|
5347
5355
|
def __init__(
|
5348
5356
|
self,
|
5349
5357
|
*,
|
5350
5358
|
type: global___GPUType.ValueType = ...,
|
5351
5359
|
count: builtins.int = ...,
|
5352
5360
|
memory: builtins.int = ...,
|
5361
|
+
gpu_type: builtins.str = ...,
|
5353
5362
|
) -> None: ...
|
5354
|
-
def ClearField(self, field_name: typing_extensions.Literal["count", b"count", "memory", b"memory", "type", b"type"]) -> None: ...
|
5363
|
+
def ClearField(self, field_name: typing_extensions.Literal["count", b"count", "gpu_type", b"gpu_type", "memory", b"memory", "type", b"type"]) -> None: ...
|
5355
5364
|
|
5356
5365
|
global___GPUConfig = GPUConfig
|
5357
5366
|
|
@@ -7054,6 +7063,7 @@ class Sandbox(google.protobuf.message.Message):
|
|
7054
7063
|
PROXY_ID_FIELD_NUMBER: builtins.int
|
7055
7064
|
ENABLE_SNAPSHOT_FIELD_NUMBER: builtins.int
|
7056
7065
|
SNAPSHOT_VERSION_FIELD_NUMBER: builtins.int
|
7066
|
+
CLOUD_PROVIDER_STR_FIELD_NUMBER: builtins.int
|
7057
7067
|
@property
|
7058
7068
|
def entrypoint_args(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
7059
7069
|
@property
|
@@ -7064,6 +7074,7 @@ class Sandbox(google.protobuf.message.Message):
|
|
7064
7074
|
@property
|
7065
7075
|
def resources(self) -> global___Resources: ...
|
7066
7076
|
cloud_provider: global___CloudProvider.ValueType
|
7077
|
+
"""Deprecated at some point"""
|
7067
7078
|
timeout_secs: builtins.int
|
7068
7079
|
workdir: builtins.str
|
7069
7080
|
@property
|
@@ -7098,6 +7109,8 @@ class Sandbox(google.protobuf.message.Message):
|
|
7098
7109
|
"""Used to pin gVisor version for memory-snapshottable sandboxes.
|
7099
7110
|
This field is set by the server, not the client.
|
7100
7111
|
"""
|
7112
|
+
cloud_provider_str: builtins.str
|
7113
|
+
"""Supersedes cloud_provider"""
|
7101
7114
|
def __init__(
|
7102
7115
|
self,
|
7103
7116
|
*,
|
@@ -7124,9 +7137,10 @@ class Sandbox(google.protobuf.message.Message):
|
|
7124
7137
|
proxy_id: builtins.str | None = ...,
|
7125
7138
|
enable_snapshot: builtins.bool = ...,
|
7126
7139
|
snapshot_version: builtins.int | None = ...,
|
7140
|
+
cloud_provider_str: builtins.str = ...,
|
7127
7141
|
) -> None: ...
|
7128
7142
|
def HasField(self, field_name: typing_extensions.Literal["_proxy_id", b"_proxy_id", "_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", "scheduler_placement", b"scheduler_placement", "snapshot_version", b"snapshot_version", "workdir", b"workdir"]) -> builtins.bool: ...
|
7129
|
-
def ClearField(self, field_name: typing_extensions.Literal["_proxy_id", b"_proxy_id", "_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", "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", "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: ...
|
7143
|
+
def ClearField(self, field_name: typing_extensions.Literal["_proxy_id", b"_proxy_id", "_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", "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: ...
|
7130
7144
|
@typing.overload
|
7131
7145
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_proxy_id", b"_proxy_id"]) -> typing_extensions.Literal["proxy_id"] | None: ...
|
7132
7146
|
@typing.overload
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|