modal 1.1.2.dev41__tar.gz → 1.1.2.dev43__tar.gz
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-1.1.2.dev41 → modal-1.1.2.dev43}/PKG-INFO +1 -1
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/secret.py +5 -1
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/volume.py +1 -1
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/client.pyi +2 -2
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/dict.py +1 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/functions.pyi +6 -6
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/queue.py +1 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/secret.py +18 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/secret.pyi +41 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/volume.py +17 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/volume.pyi +38 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal.egg-info/PKG-INFO +1 -1
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_version/__init__.py +1 -1
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/LICENSE +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/README.md +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/__main__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_clustered_functions.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_clustered_functions.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_container_entrypoint.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_functions.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_ipython.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_location.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_object.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_output.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_partial_function.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_pty.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_resolver.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_resources.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/asgi.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/container_io_manager.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/container_io_manager.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/execution_context.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/execution_context.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/gpu_memory_snapshot.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/telemetry.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_runtime/user_code_imports.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_serialization.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_traceback.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_tunnel.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_tunnel.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_type_manager.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/app_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/async_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/auth_token_manager.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/blob_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/bytes_io_segment_payload.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/deprecation.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/docker_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/function_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/git_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/grpc_testing.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/grpc_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/hash_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/http_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/jwt_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/logger.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/mount_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/name_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/package_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/pattern_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/rand_pb_testing.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/shell_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_utils/time_utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_vendor/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_vendor/a2wsgi_wsgi.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_vendor/cloudpickle.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_vendor/tblib.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/_watcher.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/app.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/app.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/2023.12.312.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/2023.12.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/2024.04.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/2024.10.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/2025.06.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/PREVIEW.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/README.md +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/builder/base-images.json +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/call_graph.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/_download.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/_traceback.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/app.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/cluster.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/config.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/container.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/dict.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/entry_point.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/environment.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/import_refs.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/launch.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/network_file_system.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/profile.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/programs/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/programs/launch_instance_ssh.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/programs/run_jupyter.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/programs/run_marimo.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/programs/vscode.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/queues.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/run.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/token.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cli/utils.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/client.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cloud_bucket_mount.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cloud_bucket_mount.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cls.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/cls.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/config.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/container_process.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/container_process.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/dict.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/environments.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/environments.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/exception.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/experimental/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/experimental/flash.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/experimental/flash.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/experimental/ipython.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/file_io.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/file_io.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/file_pattern_matcher.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/functions.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/gpu.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/image.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/image.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/io_streams.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/io_streams.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/mount.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/mount.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/network_file_system.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/network_file_system.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/object.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/object.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/output.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/parallel_map.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/parallel_map.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/partial_function.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/partial_function.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/proxy.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/proxy.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/py.typed +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/queue.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/retries.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/runner.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/runner.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/running_app.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/sandbox.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/sandbox.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/schedule.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/scheduler_placement.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/serving.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/serving.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/snapshot.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/snapshot.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/stream_type.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/token_flow.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal/token_flow.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal.egg-info/SOURCES.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal.egg-info/dependency_links.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal.egg-info/entry_points.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal.egg-info/requires.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal.egg-info/top_level.txt +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_docs/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_docs/gen_cli_docs.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_docs/gen_reference_docs.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_docs/mdmd/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_docs/mdmd/mdmd.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_docs/mdmd/signatures.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/__init__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/api.proto +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/api_grpc.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/api_pb2.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/api_pb2.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/api_pb2_grpc.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/api_pb2_grpc.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/modal_api_grpc.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/modal_options_grpc.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/options.proto +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/options_grpc.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/options_pb2.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/options_pb2.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/options_pb2_grpc.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/options_pb2_grpc.pyi +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_proto/py.typed +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/modal_version/__main__.py +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/pyproject.toml +0 -0
- {modal-1.1.2.dev41 → modal-1.1.2.dev43}/setup.cfg +0 -0
@@ -140,7 +140,11 @@ modal secret create my-credentials username=john password="$PASSWORD"
|
|
140
140
|
raise click.UsageError(f"Non-string value for secret '{k}'")
|
141
141
|
|
142
142
|
# Create secret
|
143
|
-
|
143
|
+
if force:
|
144
|
+
# TODO migrate this path once we support Secret.update()?
|
145
|
+
await _Secret._create_deployed(secret_name, env_dict, overwrite=force)
|
146
|
+
else:
|
147
|
+
await _Secret.objects.create(secret_name, env_dict)
|
144
148
|
|
145
149
|
# Print code sample
|
146
150
|
console = make_console()
|
@@ -54,7 +54,7 @@ def create(
|
|
54
54
|
version: Optional[int] = Option(default=None, help="VolumeFS version. (Experimental)"),
|
55
55
|
):
|
56
56
|
env_name = ensure_env(env)
|
57
|
-
modal.Volume.
|
57
|
+
modal.Volume.objects.create(name, environment_name=env, version=version)
|
58
58
|
usage_code = f"""
|
59
59
|
@app.function(volumes={{"/my_vol": modal.Volume.from_name("{name}")}})
|
60
60
|
def some_func():
|
@@ -33,7 +33,7 @@ class _Client:
|
|
33
33
|
server_url: str,
|
34
34
|
client_type: int,
|
35
35
|
credentials: typing.Optional[tuple[str, str]],
|
36
|
-
version: str = "1.1.2.
|
36
|
+
version: str = "1.1.2.dev43",
|
37
37
|
):
|
38
38
|
"""mdmd:hidden
|
39
39
|
The Modal client object is not intended to be instantiated directly by users.
|
@@ -164,7 +164,7 @@ class Client:
|
|
164
164
|
server_url: str,
|
165
165
|
client_type: int,
|
166
166
|
credentials: typing.Optional[tuple[str, str]],
|
167
|
-
version: str = "1.1.2.
|
167
|
+
version: str = "1.1.2.dev43",
|
168
168
|
):
|
169
169
|
"""mdmd:hidden
|
170
170
|
The Modal client object is not intended to be instantiated directly by users.
|
@@ -82,6 +82,7 @@ class _DictManager:
|
|
82
82
|
`modal.Dict.from_name` to perform a lookup after creation.
|
83
83
|
|
84
84
|
"""
|
85
|
+
check_object_name(name, "Dict")
|
85
86
|
client = await _Client.from_env() if client is None else client
|
86
87
|
object_creation_type = (
|
87
88
|
api_pb2.OBJECT_CREATION_TYPE_CREATE_IF_MISSING
|
@@ -433,7 +433,7 @@ class Function(
|
|
433
433
|
|
434
434
|
_call_generator: ___call_generator_spec[typing_extensions.Self]
|
435
435
|
|
436
|
-
class __remote_spec(typing_extensions.Protocol[
|
436
|
+
class __remote_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
437
437
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER:
|
438
438
|
"""Calls the function remotely, executing it with the given arguments and returning the execution's result."""
|
439
439
|
...
|
@@ -442,7 +442,7 @@ class Function(
|
|
442
442
|
"""Calls the function remotely, executing it with the given arguments and returning the execution's result."""
|
443
443
|
...
|
444
444
|
|
445
|
-
remote: __remote_spec[modal._functions.
|
445
|
+
remote: __remote_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
|
446
446
|
|
447
447
|
class __remote_gen_spec(typing_extensions.Protocol[SUPERSELF]):
|
448
448
|
def __call__(self, /, *args, **kwargs) -> typing.Generator[typing.Any, None, None]:
|
@@ -469,7 +469,7 @@ class Function(
|
|
469
469
|
"""
|
470
470
|
...
|
471
471
|
|
472
|
-
class ___experimental_spawn_spec(typing_extensions.Protocol[
|
472
|
+
class ___experimental_spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
473
473
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
474
474
|
"""[Experimental] Calls the function with the given arguments, without waiting for the results.
|
475
475
|
|
@@ -493,7 +493,7 @@ class Function(
|
|
493
493
|
...
|
494
494
|
|
495
495
|
_experimental_spawn: ___experimental_spawn_spec[
|
496
|
-
modal._functions.
|
496
|
+
modal._functions.ReturnType, modal._functions.P, typing_extensions.Self
|
497
497
|
]
|
498
498
|
|
499
499
|
class ___spawn_map_inner_spec(typing_extensions.Protocol[P_INNER, SUPERSELF]):
|
@@ -502,7 +502,7 @@ class Function(
|
|
502
502
|
|
503
503
|
_spawn_map_inner: ___spawn_map_inner_spec[modal._functions.P, typing_extensions.Self]
|
504
504
|
|
505
|
-
class __spawn_spec(typing_extensions.Protocol[
|
505
|
+
class __spawn_spec(typing_extensions.Protocol[ReturnType_INNER, P_INNER, SUPERSELF]):
|
506
506
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
507
507
|
"""Calls the function with the given arguments, without waiting for the results.
|
508
508
|
|
@@ -523,7 +523,7 @@ class Function(
|
|
523
523
|
"""
|
524
524
|
...
|
525
525
|
|
526
|
-
spawn: __spawn_spec[modal._functions.
|
526
|
+
spawn: __spawn_spec[modal._functions.ReturnType, modal._functions.P, typing_extensions.Self]
|
527
527
|
|
528
528
|
def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]:
|
529
529
|
"""Return the inner Python object wrapped by this Modal Function."""
|
@@ -80,6 +80,7 @@ class _QueueManager:
|
|
80
80
|
`modal.Queue.from_name` to perform a lookup after creation.
|
81
81
|
|
82
82
|
"""
|
83
|
+
check_object_name(name, "Queue")
|
83
84
|
client = await _Client.from_env() if client is None else client
|
84
85
|
object_creation_type = (
|
85
86
|
api_pb2.OBJECT_CREATION_TYPE_CREATE_IF_MISSING
|
@@ -75,6 +75,7 @@ class _SecretManager:
|
|
75
75
|
`modal.Secret.from_name` to perform a lookup after creation.
|
76
76
|
|
77
77
|
"""
|
78
|
+
check_object_name(name, "Secret")
|
78
79
|
client = await _Client.from_env() if client is None else client
|
79
80
|
object_creation_type = (
|
80
81
|
api_pb2.OBJECT_CREATION_TYPE_CREATE_IF_MISSING
|
@@ -441,6 +442,23 @@ class _Secret(_Object, type_prefix="st"):
|
|
441
442
|
client: Optional[_Client] = None,
|
442
443
|
environment_name: Optional[str] = None,
|
443
444
|
overwrite: bool = False,
|
445
|
+
) -> str:
|
446
|
+
"""mdmd:hidden"""
|
447
|
+
deprecation_warning(
|
448
|
+
(2025, 8, 13),
|
449
|
+
"The undocumented `modal.Secret.create_deployed` method is deprecated and will be removed "
|
450
|
+
"in a future release. It can be replaced with `modal.Secret.objects.create`.",
|
451
|
+
)
|
452
|
+
return await _Secret._create_deployed(deployment_name, env_dict, namespace, client, environment_name, overwrite)
|
453
|
+
|
454
|
+
@staticmethod
|
455
|
+
async def _create_deployed(
|
456
|
+
deployment_name: str,
|
457
|
+
env_dict: dict[str, str],
|
458
|
+
namespace=None, # mdmd:line-hidden
|
459
|
+
client: Optional[_Client] = None,
|
460
|
+
environment_name: Optional[str] = None,
|
461
|
+
overwrite: bool = False,
|
444
462
|
) -> str:
|
445
463
|
"""mdmd:hidden"""
|
446
464
|
warn_if_passing_namespace(namespace, "modal.Secret.create_deployed")
|
@@ -446,6 +446,18 @@ class _Secret(modal._object._Object):
|
|
446
446
|
"""mdmd:hidden"""
|
447
447
|
...
|
448
448
|
|
449
|
+
@staticmethod
|
450
|
+
async def _create_deployed(
|
451
|
+
deployment_name: str,
|
452
|
+
env_dict: dict[str, str],
|
453
|
+
namespace=None,
|
454
|
+
client: typing.Optional[modal.client._Client] = None,
|
455
|
+
environment_name: typing.Optional[str] = None,
|
456
|
+
overwrite: bool = False,
|
457
|
+
) -> str:
|
458
|
+
"""mdmd:hidden"""
|
459
|
+
...
|
460
|
+
|
449
461
|
async def info(self) -> SecretInfo:
|
450
462
|
"""Return information about the Secret object."""
|
451
463
|
...
|
@@ -598,6 +610,35 @@ class Secret(modal.object.Object):
|
|
598
610
|
|
599
611
|
create_deployed: __create_deployed_spec
|
600
612
|
|
613
|
+
class ___create_deployed_spec(typing_extensions.Protocol):
|
614
|
+
def __call__(
|
615
|
+
self,
|
616
|
+
/,
|
617
|
+
deployment_name: str,
|
618
|
+
env_dict: dict[str, str],
|
619
|
+
namespace=None,
|
620
|
+
client: typing.Optional[modal.client.Client] = None,
|
621
|
+
environment_name: typing.Optional[str] = None,
|
622
|
+
overwrite: bool = False,
|
623
|
+
) -> str:
|
624
|
+
"""mdmd:hidden"""
|
625
|
+
...
|
626
|
+
|
627
|
+
async def aio(
|
628
|
+
self,
|
629
|
+
/,
|
630
|
+
deployment_name: str,
|
631
|
+
env_dict: dict[str, str],
|
632
|
+
namespace=None,
|
633
|
+
client: typing.Optional[modal.client.Client] = None,
|
634
|
+
environment_name: typing.Optional[str] = None,
|
635
|
+
overwrite: bool = False,
|
636
|
+
) -> str:
|
637
|
+
"""mdmd:hidden"""
|
638
|
+
...
|
639
|
+
|
640
|
+
_create_deployed: ___create_deployed_spec
|
641
|
+
|
601
642
|
class __info_spec(typing_extensions.Protocol[SUPERSELF]):
|
602
643
|
def __call__(self, /) -> SecretInfo:
|
603
644
|
"""Return information about the Secret object."""
|
@@ -149,6 +149,7 @@ class _VolumeManager:
|
|
149
149
|
`modal.Volume.from_name` to perform a lookup after creation.
|
150
150
|
|
151
151
|
"""
|
152
|
+
check_object_name(name, "Volume")
|
152
153
|
client = await _Client.from_env() if client is None else client
|
153
154
|
object_creation_type = (
|
154
155
|
api_pb2.OBJECT_CREATION_TYPE_CREATE_IF_MISSING
|
@@ -523,6 +524,22 @@ class _Volume(_Object, type_prefix="vo"):
|
|
523
524
|
client: Optional[_Client] = None,
|
524
525
|
environment_name: Optional[str] = None,
|
525
526
|
version: "typing.Optional[modal_proto.api_pb2.VolumeFsVersion.ValueType]" = None,
|
527
|
+
) -> str:
|
528
|
+
"""mdmd:hidden"""
|
529
|
+
deprecation_warning(
|
530
|
+
(2025, 8, 13),
|
531
|
+
"The undocumented `modal.Volume.create_deployed` method is deprecated and will be removed "
|
532
|
+
"in a future release. It can be replaced with `modal.Volume.objects.create`.",
|
533
|
+
)
|
534
|
+
return await _Volume._create_deployed(deployment_name, namespace, client, environment_name, version)
|
535
|
+
|
536
|
+
@staticmethod
|
537
|
+
async def _create_deployed(
|
538
|
+
deployment_name: str,
|
539
|
+
namespace=None, # mdmd:line-hidden
|
540
|
+
client: Optional[_Client] = None,
|
541
|
+
environment_name: Optional[str] = None,
|
542
|
+
version: "typing.Optional[modal_proto.api_pb2.VolumeFsVersion.ValueType]" = None,
|
526
543
|
) -> str:
|
527
544
|
"""mdmd:hidden"""
|
528
545
|
check_object_name(deployment_name, "Volume")
|
@@ -547,6 +547,17 @@ class _Volume(modal._object._Object):
|
|
547
547
|
"""mdmd:hidden"""
|
548
548
|
...
|
549
549
|
|
550
|
+
@staticmethod
|
551
|
+
async def _create_deployed(
|
552
|
+
deployment_name: str,
|
553
|
+
namespace=None,
|
554
|
+
client: typing.Optional[modal.client._Client] = None,
|
555
|
+
environment_name: typing.Optional[str] = None,
|
556
|
+
version: typing.Optional[int] = None,
|
557
|
+
) -> str:
|
558
|
+
"""mdmd:hidden"""
|
559
|
+
...
|
560
|
+
|
550
561
|
async def info(self) -> VolumeInfo:
|
551
562
|
"""Return information about the Volume object."""
|
552
563
|
...
|
@@ -914,6 +925,33 @@ class Volume(modal.object.Object):
|
|
914
925
|
|
915
926
|
create_deployed: __create_deployed_spec
|
916
927
|
|
928
|
+
class ___create_deployed_spec(typing_extensions.Protocol):
|
929
|
+
def __call__(
|
930
|
+
self,
|
931
|
+
/,
|
932
|
+
deployment_name: str,
|
933
|
+
namespace=None,
|
934
|
+
client: typing.Optional[modal.client.Client] = None,
|
935
|
+
environment_name: typing.Optional[str] = None,
|
936
|
+
version: typing.Optional[int] = None,
|
937
|
+
) -> str:
|
938
|
+
"""mdmd:hidden"""
|
939
|
+
...
|
940
|
+
|
941
|
+
async def aio(
|
942
|
+
self,
|
943
|
+
/,
|
944
|
+
deployment_name: str,
|
945
|
+
namespace=None,
|
946
|
+
client: typing.Optional[modal.client.Client] = None,
|
947
|
+
environment_name: typing.Optional[str] = None,
|
948
|
+
version: typing.Optional[int] = None,
|
949
|
+
) -> str:
|
950
|
+
"""mdmd:hidden"""
|
951
|
+
...
|
952
|
+
|
953
|
+
_create_deployed: ___create_deployed_spec
|
954
|
+
|
917
955
|
class __info_spec(typing_extensions.Protocol[SUPERSELF]):
|
918
956
|
def __call__(self, /) -> VolumeInfo:
|
919
957
|
"""Return information about the Volume object."""
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|