modal 1.0.0.dev10__py3-none-any.whl → 1.0.0.dev12__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 +9 -11
- modal/_partial_function.py +1 -1
- modal/app.py +0 -8
- modal/app.pyi +0 -6
- modal/cli/app.py +0 -19
- modal/client.pyi +2 -2
- modal/cls.py +8 -11
- modal/cls.pyi +2 -17
- modal/config.py +5 -11
- modal/dict.py +2 -1
- modal/functions.pyi +6 -6
- modal/image.py +4 -15
- modal/image.pyi +0 -1
- modal/network_file_system.py +2 -1
- modal/queue.py +2 -1
- modal/sandbox.py +5 -8
- modal/volume.py +2 -1
- {modal-1.0.0.dev10.dist-info → modal-1.0.0.dev12.dist-info}/METADATA +1 -1
- {modal-1.0.0.dev10.dist-info → modal-1.0.0.dev12.dist-info}/RECORD +27 -27
- modal_proto/api.proto +9 -1
- modal_proto/api_pb2.py +756 -756
- modal_proto/api_pb2.pyi +22 -8
- modal_version/__init__.py +1 -1
- {modal-1.0.0.dev10.dist-info → modal-1.0.0.dev12.dist-info}/WHEEL +0 -0
- {modal-1.0.0.dev10.dist-info → modal-1.0.0.dev12.dist-info}/entry_points.txt +0 -0
- {modal-1.0.0.dev10.dist-info → modal-1.0.0.dev12.dist-info}/licenses/LICENSE +0 -0
- {modal-1.0.0.dev10.dist-info → modal-1.0.0.dev12.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -2193,14 +2193,11 @@ class ClassGetRequest(google.protobuf.message.Message):
|
|
2193
2193
|
OBJECT_TAG_FIELD_NUMBER: builtins.int
|
2194
2194
|
NAMESPACE_FIELD_NUMBER: builtins.int
|
2195
2195
|
ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
|
2196
|
-
LOOKUP_PUBLISHED_FIELD_NUMBER: builtins.int
|
2197
2196
|
ONLY_CLASS_FUNCTION_FIELD_NUMBER: builtins.int
|
2198
2197
|
app_name: builtins.str
|
2199
2198
|
object_tag: builtins.str
|
2200
2199
|
namespace: global___DeploymentNamespace.ValueType
|
2201
2200
|
environment_name: builtins.str
|
2202
|
-
lookup_published: builtins.bool
|
2203
|
-
"""Lookup class on app published by another workspace"""
|
2204
2201
|
only_class_function: builtins.bool
|
2205
2202
|
"""True starting with 0.67.x clients, which don't create method placeholder functions"""
|
2206
2203
|
def __init__(
|
@@ -2210,10 +2207,9 @@ class ClassGetRequest(google.protobuf.message.Message):
|
|
2210
2207
|
object_tag: builtins.str = ...,
|
2211
2208
|
namespace: global___DeploymentNamespace.ValueType = ...,
|
2212
2209
|
environment_name: builtins.str = ...,
|
2213
|
-
lookup_published: builtins.bool = ...,
|
2214
2210
|
only_class_function: builtins.bool = ...,
|
2215
2211
|
) -> None: ...
|
2216
|
-
def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "environment_name", b"environment_name", "
|
2212
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_name", b"app_name", "environment_name", b"environment_name", "namespace", b"namespace", "object_tag", b"object_tag", "only_class_function", b"only_class_function"]) -> None: ...
|
2217
2213
|
|
2218
2214
|
global___ClassGetRequest = ClassGetRequest
|
2219
2215
|
|
@@ -4177,6 +4173,7 @@ class Function(google.protobuf.message.Message):
|
|
4177
4173
|
AUTOSCALER_SETTINGS_FIELD_NUMBER: builtins.int
|
4178
4174
|
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
4179
4175
|
EXPERIMENTAL_OPTIONS_FIELD_NUMBER: builtins.int
|
4176
|
+
MOUNT_CLIENT_DEPENDENCIES_FIELD_NUMBER: builtins.int
|
4180
4177
|
module_name: builtins.str
|
4181
4178
|
function_name: builtins.str
|
4182
4179
|
@property
|
@@ -4305,6 +4302,10 @@ class Function(google.protobuf.message.Message):
|
|
4305
4302
|
Note the value type as string. Internally we'll coerce all values to string with str().
|
4306
4303
|
On the server, it's necessary to convert back to the most natural type (e.g. int) when relevant.
|
4307
4304
|
"""
|
4305
|
+
mount_client_dependencies: builtins.bool
|
4306
|
+
"""If set, client deps will be mounted into the container, and are
|
4307
|
+
no longer expected to exist in the image itself.
|
4308
|
+
"""
|
4308
4309
|
def __init__(
|
4309
4310
|
self,
|
4310
4311
|
*,
|
@@ -4376,9 +4377,10 @@ class Function(google.protobuf.message.Message):
|
|
4376
4377
|
autoscaler_settings: global___AutoscalerSettings | None = ...,
|
4377
4378
|
function_schema: global___FunctionSchema | None = ...,
|
4378
4379
|
experimental_options: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
4380
|
+
mount_client_dependencies: builtins.bool = ...,
|
4379
4381
|
) -> None: ...
|
4380
4382
|
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", "autoscaler_settings", b"autoscaler_settings", "checkpoint", b"checkpoint", "class_parameter_info", b"class_parameter_info", "cloud_provider", b"cloud_provider", "function_schema", b"function_schema", "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: ...
|
4381
|
-
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_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_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", "autoscaler_settings", b"autoscaler_settings", "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", "experimental_options", b"experimental_options", "function_name", b"function_name", "function_schema", b"function_schema", "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: ...
|
4383
|
+
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_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_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", "autoscaler_settings", b"autoscaler_settings", "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", "experimental_options", b"experimental_options", "function_name", b"function_name", "function_schema", b"function_schema", "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_client_dependencies", b"mount_client_dependencies", "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: ...
|
4382
4384
|
@typing.overload
|
4383
4385
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
|
4384
4386
|
@typing.overload
|
@@ -6280,6 +6282,8 @@ class ImageMetadata(google.protobuf.message.Message):
|
|
6280
6282
|
PYTHON_VERSION_INFO_FIELD_NUMBER: builtins.int
|
6281
6283
|
PYTHON_PACKAGES_FIELD_NUMBER: builtins.int
|
6282
6284
|
WORKDIR_FIELD_NUMBER: builtins.int
|
6285
|
+
LIBC_VERSION_INFO_FIELD_NUMBER: builtins.int
|
6286
|
+
IMAGE_BUILDER_VERSION_FIELD_NUMBER: builtins.int
|
6283
6287
|
python_version_info: builtins.str
|
6284
6288
|
"""The output of `python -VV. Not set if missing"""
|
6285
6289
|
@property
|
@@ -6289,15 +6293,25 @@ class ImageMetadata(google.protobuf.message.Message):
|
|
6289
6293
|
"""
|
6290
6294
|
workdir: builtins.str
|
6291
6295
|
"""The work directory of the image, defaulting to "/". Not set if missing"""
|
6296
|
+
libc_version_info: builtins.str
|
6297
|
+
"""The image's libc version"""
|
6298
|
+
image_builder_version: builtins.str
|
6299
|
+
"""The builder version for/with which the image was created."""
|
6292
6300
|
def __init__(
|
6293
6301
|
self,
|
6294
6302
|
*,
|
6295
6303
|
python_version_info: builtins.str | None = ...,
|
6296
6304
|
python_packages: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
6297
6305
|
workdir: builtins.str | None = ...,
|
6306
|
+
libc_version_info: builtins.str | None = ...,
|
6307
|
+
image_builder_version: builtins.str | None = ...,
|
6298
6308
|
) -> None: ...
|
6299
|
-
def HasField(self, field_name: typing_extensions.Literal["_python_version_info", b"_python_version_info", "_workdir", b"_workdir", "python_version_info", b"python_version_info", "workdir", b"workdir"]) -> builtins.bool: ...
|
6300
|
-
def ClearField(self, field_name: typing_extensions.Literal["_python_version_info", b"_python_version_info", "_workdir", b"_workdir", "python_packages", b"python_packages", "python_version_info", b"python_version_info", "workdir", b"workdir"]) -> None: ...
|
6309
|
+
def HasField(self, field_name: typing_extensions.Literal["_image_builder_version", b"_image_builder_version", "_libc_version_info", b"_libc_version_info", "_python_version_info", b"_python_version_info", "_workdir", b"_workdir", "image_builder_version", b"image_builder_version", "libc_version_info", b"libc_version_info", "python_version_info", b"python_version_info", "workdir", b"workdir"]) -> builtins.bool: ...
|
6310
|
+
def ClearField(self, field_name: typing_extensions.Literal["_image_builder_version", b"_image_builder_version", "_libc_version_info", b"_libc_version_info", "_python_version_info", b"_python_version_info", "_workdir", b"_workdir", "image_builder_version", b"image_builder_version", "libc_version_info", b"libc_version_info", "python_packages", b"python_packages", "python_version_info", b"python_version_info", "workdir", b"workdir"]) -> None: ...
|
6311
|
+
@typing.overload
|
6312
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_image_builder_version", b"_image_builder_version"]) -> typing_extensions.Literal["image_builder_version"] | None: ...
|
6313
|
+
@typing.overload
|
6314
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_libc_version_info", b"_libc_version_info"]) -> typing_extensions.Literal["libc_version_info"] | None: ...
|
6301
6315
|
@typing.overload
|
6302
6316
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_python_version_info", b"_python_version_info"]) -> typing_extensions.Literal["python_version_info"] | None: ...
|
6303
6317
|
@typing.overload
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|