modal 1.4.3.dev6__tar.gz → 1.4.3.dev7__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.4.3.dev6 → modal-1.4.3.dev7}/PKG-INFO +1 -1
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/async_utils.py +1 -1
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/sandbox_fs_utils.py +60 -30
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/client.pyi +2 -2
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/file_io.py +1 -1
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/functions.pyi +6 -6
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/sandbox.py +9 -1
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/sandbox.pyi +15 -3
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/sandbox_fs.py +242 -146
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/sandbox_fs.pyi +375 -233
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal.egg-info/PKG-INFO +1 -1
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_version/__init__.py +1 -1
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/LICENSE +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/README.md +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/__main__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_billing.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_clustered_functions.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_clustered_functions.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_container_entrypoint.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_functions.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_grpc_client.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_ipython.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_load_context.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_location.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_logs.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_object.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_output/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_output/manager.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_output/pty.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_output/rich.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_output/status.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_partial_function.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_resolver.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_resources.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/asgi.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/container_io_manager.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/container_io_manager.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/execution_context.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/execution_context.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/gpu_memory_snapshot.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/telemetry.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/user_code_event_loop.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_runtime/user_code_imports.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_serialization.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_server.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_traceback.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_tunnel.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_tunnel.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_type_manager.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/app_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/auth_token_manager.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/blob_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/browser_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/bytes_io_segment_payload.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/deprecation.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/docker_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/function_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/git_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/grpc_testing.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/grpc_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/hash_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/http_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/jwt_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/logger.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/mount_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/name_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/package_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/pattern_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/rand_pb_testing.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/shell_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/task_command_router_client.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_utils/time_utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_vendor/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_vendor/a2wsgi_wsgi.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_vendor/cloudpickle.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_vendor/tblib.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_vendor/version.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/_watcher.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/app.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/app.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/billing.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/2023.12.312.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/2023.12.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/2024.04.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/2024.10.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/2025.06.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/PREVIEW.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/README.md +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/builder/base-images.json +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/call_graph.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/_download.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/_help.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/_traceback.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/app.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/billing.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/bootstrap.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/changelog.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/cluster.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/config.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/container.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/dashboard.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/dict.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/entry_point.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/environment.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/import_refs.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/launch.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/logo.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/network_file_system.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/profile.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/programs/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/programs/run_jupyter.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/programs/vscode.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/queues.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/run.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/secret.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/selector.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/shell.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/token.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/utils.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cli/volume.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/client.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cloud_bucket_mount.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cloud_bucket_mount.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cls.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/cls.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/config.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/container_process.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/container_process.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/dict.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/dict.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/environments.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/environments.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/exception.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/experimental/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/experimental/flash.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/experimental/flash.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/experimental/ipython.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/file_io.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/file_pattern_matcher.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/functions.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/image.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/image.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/io_streams.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/io_streams.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/mount.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/mount.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/network_file_system.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/network_file_system.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/object.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/object.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/output.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/parallel_map.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/parallel_map.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/partial_function.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/partial_function.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/proxy.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/proxy.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/py.typed +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/queue.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/queue.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/retries.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/runner.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/runner.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/running_app.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/schedule.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/scheduler_placement.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/secret.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/secret.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/server.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/server.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/serving.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/serving.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/snapshot.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/snapshot.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/stream_type.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/token_flow.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/token_flow.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/volume.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal/volume.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal.egg-info/SOURCES.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal.egg-info/dependency_links.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal.egg-info/entry_points.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal.egg-info/requires.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal.egg-info/top_level.txt +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/gen_cli_docs.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/gen_cli_docs_main.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/gen_reference_docs.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/gen_reference_docs_main.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/mdmd/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/mdmd/mdmd.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_docs/mdmd/signatures.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/__init__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/api_grpc.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/api_pb2.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/api_pb2.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/api_pb2_grpc.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/api_pb2_grpc.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/modal_api_grpc.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/py.typed +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/task_command_router_grpc.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/task_command_router_pb2.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/task_command_router_pb2.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/task_command_router_pb2_grpc.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_proto/task_command_router_pb2_grpc.pyi +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/modal_version/__main__.py +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/pyproject.toml +0 -0
- {modal-1.4.3.dev6 → modal-1.4.3.dev7}/setup.cfg +0 -0
|
@@ -1115,7 +1115,7 @@ async def async_merge(
|
|
|
1115
1115
|
new_output_task = asyncio.create_task(queue.get())
|
|
1116
1116
|
|
|
1117
1117
|
finally:
|
|
1118
|
-
unfinished_tasks = [t for t in tasks | {new_output_task} if not t.done()]
|
|
1118
|
+
unfinished_tasks: list[asyncio.Task[Any]] = [t for t in tasks | {new_output_task} if not t.done()]
|
|
1119
1119
|
for t in unfinished_tasks:
|
|
1120
1120
|
t.cancel()
|
|
1121
1121
|
try:
|
|
@@ -60,27 +60,6 @@ def try_parse_error_payload(stderr: Union[str, bytes]) -> Optional[ErrorPayload]
|
|
|
60
60
|
return ErrorPayload(error_kind=error_kind, message=message, detail=detail)
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
def raise_read_file_error(returncode: int, stderr: Union[str, bytes], remote_path: str) -> NoReturn:
|
|
64
|
-
if payload := try_parse_error_payload(stderr):
|
|
65
|
-
logger.debug(
|
|
66
|
-
f"sandbox-fs-tools read error: path={remote_path}, "
|
|
67
|
-
f"error_kind={payload.error_kind}, message={payload.message}, detail={payload.detail}"
|
|
68
|
-
)
|
|
69
|
-
if payload.error_kind == "NotFound":
|
|
70
|
-
raise SandboxFilesystemNotFoundError(f"{payload.message}: {remote_path}")
|
|
71
|
-
if payload.error_kind == "IsDirectory":
|
|
72
|
-
raise SandboxFilesystemIsADirectoryError(f"{payload.message}: {remote_path}")
|
|
73
|
-
if payload.error_kind == "PermissionDenied":
|
|
74
|
-
raise SandboxFilesystemPermissionError(f"{payload.message}: {remote_path}")
|
|
75
|
-
if payload.error_kind == "FileTooLarge":
|
|
76
|
-
raise SandboxFilesystemFileTooLargeError(f"{payload.message}: {remote_path}")
|
|
77
|
-
raise SandboxFilesystemError(payload.message)
|
|
78
|
-
|
|
79
|
-
if stderr_text := _stderr_to_text(stderr):
|
|
80
|
-
logger.debug(f"Unstructured modal-sandbox-fs-tools stderr: {stderr_text}")
|
|
81
|
-
raise SandboxFilesystemError(f"Operation on '{remote_path}' failed with exit code {returncode}")
|
|
82
|
-
|
|
83
|
-
|
|
84
63
|
def _extract_support_error_code(exc: Exception) -> Optional[str]:
|
|
85
64
|
if match := re.search(r"Error code:\s*([A-Z0-9]{8})", str(exc)):
|
|
86
65
|
return match.group(1)
|
|
@@ -144,26 +123,66 @@ def make_write_file_command(remote_path: str) -> str:
|
|
|
144
123
|
return json.dumps({"WriteFile": {"path": remote_path}})
|
|
145
124
|
|
|
146
125
|
|
|
147
|
-
def
|
|
148
|
-
|
|
126
|
+
def raise_list_files_error(returncode: int, stderr: Union[str, bytes], remote_path: str) -> NoReturn:
|
|
127
|
+
if payload := try_parse_error_payload(stderr):
|
|
128
|
+
logger.debug(
|
|
129
|
+
f"sandbox-fs-tools list_files error: path={remote_path}, "
|
|
130
|
+
f"error_kind={payload.error_kind}, message={payload.message}, detail={payload.detail}"
|
|
131
|
+
)
|
|
132
|
+
if payload.error_kind == "NotFound":
|
|
133
|
+
raise SandboxFilesystemNotFoundError(f"{payload.message}: {remote_path}")
|
|
134
|
+
if payload.error_kind in ("IsFile", "NotDirectory"):
|
|
135
|
+
raise SandboxFilesystemNotADirectoryError(f"{payload.message}: {remote_path}")
|
|
136
|
+
if payload.error_kind == "PermissionDenied":
|
|
137
|
+
raise SandboxFilesystemPermissionError(f"{payload.message}: {remote_path}")
|
|
138
|
+
raise SandboxFilesystemError(payload.message)
|
|
139
|
+
|
|
140
|
+
if stderr_text := _stderr_to_text(stderr):
|
|
141
|
+
logger.debug(f"Unstructured modal-sandbox-fs-tools stderr: {stderr_text}")
|
|
142
|
+
raise SandboxFilesystemError(f"Operation on '{remote_path}' failed with exit code {returncode}")
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def make_list_files_command(remote_path: str) -> str:
|
|
146
|
+
"""Build the JSON command string for a ListFiles operation.
|
|
149
147
|
|
|
150
148
|
The returned JSON must match the `Command` enum in the modal-sandbox-fs-tools
|
|
151
149
|
Rust crate (crates/modal-sandbox-fs-tools/src/lib.rs). Treat changes to
|
|
152
150
|
this schema like protobuf changes: fields must not be removed or renamed,
|
|
153
151
|
only added with backwards-compatible defaults.
|
|
154
152
|
"""
|
|
155
|
-
return json.dumps({"
|
|
153
|
+
return json.dumps({"ListFiles": {"path": remote_path}})
|
|
156
154
|
|
|
157
155
|
|
|
158
|
-
def
|
|
159
|
-
|
|
156
|
+
def raise_read_file_error(returncode: int, stderr: Union[str, bytes], remote_path: str) -> NoReturn:
|
|
157
|
+
if payload := try_parse_error_payload(stderr):
|
|
158
|
+
logger.debug(
|
|
159
|
+
f"sandbox-fs-tools read error: path={remote_path}, "
|
|
160
|
+
f"error_kind={payload.error_kind}, message={payload.message}, detail={payload.detail}"
|
|
161
|
+
)
|
|
162
|
+
if payload.error_kind == "NotFound":
|
|
163
|
+
raise SandboxFilesystemNotFoundError(f"{payload.message}: {remote_path}")
|
|
164
|
+
if payload.error_kind == "IsDirectory":
|
|
165
|
+
raise SandboxFilesystemIsADirectoryError(f"{payload.message}: {remote_path}")
|
|
166
|
+
if payload.error_kind == "PermissionDenied":
|
|
167
|
+
raise SandboxFilesystemPermissionError(f"{payload.message}: {remote_path}")
|
|
168
|
+
if payload.error_kind == "FileTooLarge":
|
|
169
|
+
raise SandboxFilesystemFileTooLargeError(f"{payload.message}: {remote_path}")
|
|
170
|
+
raise SandboxFilesystemError(payload.message)
|
|
171
|
+
|
|
172
|
+
if stderr_text := _stderr_to_text(stderr):
|
|
173
|
+
logger.debug(f"Unstructured modal-sandbox-fs-tools stderr: {stderr_text}")
|
|
174
|
+
raise SandboxFilesystemError(f"Operation on '{remote_path}' failed with exit code {returncode}")
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def make_read_file_command(remote_path: str) -> str:
|
|
178
|
+
"""Build the JSON command string for a ReadFile operation.
|
|
160
179
|
|
|
161
180
|
The returned JSON must match the `Command` enum in the modal-sandbox-fs-tools
|
|
162
181
|
Rust crate (crates/modal-sandbox-fs-tools/src/lib.rs). Treat changes to
|
|
163
182
|
this schema like protobuf changes: fields must not be removed or renamed,
|
|
164
183
|
only added with backwards-compatible defaults.
|
|
165
184
|
"""
|
|
166
|
-
return json.dumps({"
|
|
185
|
+
return json.dumps({"ReadFile": {"path": remote_path}})
|
|
167
186
|
|
|
168
187
|
|
|
169
188
|
def raise_remove_error(returncode: int, stderr: Union[str, bytes], remote_path: str) -> NoReturn:
|
|
@@ -189,15 +208,15 @@ def raise_remove_error(returncode: int, stderr: Union[str, bytes], remote_path:
|
|
|
189
208
|
raise SandboxFilesystemError(f"Operation on '{remote_path}' failed with exit code {returncode}")
|
|
190
209
|
|
|
191
210
|
|
|
192
|
-
def
|
|
193
|
-
"""Build the JSON command string for a
|
|
211
|
+
def make_remove_command(remote_path: str, recursive: bool) -> str:
|
|
212
|
+
"""Build the JSON command string for a Remove operation.
|
|
194
213
|
|
|
195
214
|
The returned JSON must match the `Command` enum in the modal-sandbox-fs-tools
|
|
196
215
|
Rust crate (crates/modal-sandbox-fs-tools/src/lib.rs). Treat changes to
|
|
197
216
|
this schema like protobuf changes: fields must not be removed or renamed,
|
|
198
217
|
only added with backwards-compatible defaults.
|
|
199
218
|
"""
|
|
200
|
-
return json.dumps({"
|
|
219
|
+
return json.dumps({"Remove": {"path": remote_path, "recursive": recursive}})
|
|
201
220
|
|
|
202
221
|
|
|
203
222
|
def raise_make_directory_error(returncode: int, stderr: Union[str, bytes], remote_path: str) -> NoReturn:
|
|
@@ -225,6 +244,17 @@ def raise_make_directory_error(returncode: int, stderr: Union[str, bytes], remot
|
|
|
225
244
|
raise SandboxFilesystemError(f"Operation on '{remote_path}' failed with exit code {returncode}")
|
|
226
245
|
|
|
227
246
|
|
|
247
|
+
def make_make_directory_command(remote_path: str, create_parents: bool) -> str:
|
|
248
|
+
"""Build the JSON command string for a MakeDirectory operation.
|
|
249
|
+
|
|
250
|
+
The returned JSON must match the `Command` enum in the modal-sandbox-fs-tools
|
|
251
|
+
Rust crate (crates/modal-sandbox-fs-tools/src/lib.rs). Treat changes to
|
|
252
|
+
this schema like protobuf changes: fields must not be removed or renamed,
|
|
253
|
+
only added with backwards-compatible defaults.
|
|
254
|
+
"""
|
|
255
|
+
return json.dumps({"MakeDirectory": {"path": remote_path, "parents": create_parents}})
|
|
256
|
+
|
|
257
|
+
|
|
228
258
|
def validate_absolute_remote_path(remote_path: str, operation: str) -> None:
|
|
229
259
|
if not PurePosixPath(remote_path).is_absolute():
|
|
230
260
|
raise InvalidError(f"Sandbox.filesystem.{operation}() currently only supports absolute remote_path values")
|
|
@@ -35,7 +35,7 @@ class _Client:
|
|
|
35
35
|
server_url: str,
|
|
36
36
|
client_type: int,
|
|
37
37
|
credentials: typing.Optional[tuple[str, str]],
|
|
38
|
-
version: str = "1.4.3.
|
|
38
|
+
version: str = "1.4.3.dev7",
|
|
39
39
|
):
|
|
40
40
|
"""mdmd:hidden
|
|
41
41
|
The Modal client object is not intended to be instantiated directly by users.
|
|
@@ -175,7 +175,7 @@ class Client:
|
|
|
175
175
|
server_url: str,
|
|
176
176
|
client_type: int,
|
|
177
177
|
credentials: typing.Optional[tuple[str, str]],
|
|
178
|
-
version: str = "1.4.3.
|
|
178
|
+
version: str = "1.4.3.dev7",
|
|
179
179
|
):
|
|
180
180
|
"""mdmd:hidden
|
|
181
181
|
The Modal client object is not intended to be instantiated directly by users.
|
|
@@ -396,7 +396,7 @@ class _FileIO(Generic[T]):
|
|
|
396
396
|
"""List the contents of the provided directory."""
|
|
397
397
|
deprecation_warning(
|
|
398
398
|
(2026, 3, 9),
|
|
399
|
-
"`FileIO.ls()` is deprecated. Use `Sandbox.
|
|
399
|
+
"`FileIO.ls()` is deprecated. Use `Sandbox.filesystem.list_files()` instead.",
|
|
400
400
|
pending=True,
|
|
401
401
|
)
|
|
402
402
|
return await ls(path, client, task_id)
|
|
@@ -347,7 +347,7 @@ class Function(
|
|
|
347
347
|
|
|
348
348
|
_call_generator: ___call_generator_spec
|
|
349
349
|
|
|
350
|
-
class __remote_spec(typing_extensions.Protocol[
|
|
350
|
+
class __remote_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
351
351
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> ReturnType_INNER:
|
|
352
352
|
"""Calls the function remotely, executing it with the given arguments and returning the execution's result."""
|
|
353
353
|
...
|
|
@@ -356,7 +356,7 @@ class Function(
|
|
|
356
356
|
"""Calls the function remotely, executing it with the given arguments and returning the execution's result."""
|
|
357
357
|
...
|
|
358
358
|
|
|
359
|
-
remote: __remote_spec[modal._functions.
|
|
359
|
+
remote: __remote_spec[modal._functions.P, modal._functions.ReturnType]
|
|
360
360
|
|
|
361
361
|
class __remote_gen_spec(typing_extensions.Protocol):
|
|
362
362
|
def __call__(self, /, *args, **kwargs) -> typing.Generator[typing.Any, None, None]:
|
|
@@ -383,7 +383,7 @@ class Function(
|
|
|
383
383
|
"""
|
|
384
384
|
...
|
|
385
385
|
|
|
386
|
-
class ___experimental_spawn_spec(typing_extensions.Protocol[
|
|
386
|
+
class ___experimental_spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
387
387
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
|
388
388
|
"""[Experimental] Calls the function with the given arguments, without waiting for the results.
|
|
389
389
|
|
|
@@ -406,7 +406,7 @@ class Function(
|
|
|
406
406
|
"""
|
|
407
407
|
...
|
|
408
408
|
|
|
409
|
-
_experimental_spawn: ___experimental_spawn_spec[modal._functions.
|
|
409
|
+
_experimental_spawn: ___experimental_spawn_spec[modal._functions.P, modal._functions.ReturnType]
|
|
410
410
|
|
|
411
411
|
class ___spawn_map_inner_spec(typing_extensions.Protocol[P_INNER]):
|
|
412
412
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> None: ...
|
|
@@ -414,7 +414,7 @@ class Function(
|
|
|
414
414
|
|
|
415
415
|
_spawn_map_inner: ___spawn_map_inner_spec[modal._functions.P]
|
|
416
416
|
|
|
417
|
-
class __spawn_spec(typing_extensions.Protocol[
|
|
417
|
+
class __spawn_spec(typing_extensions.Protocol[P_INNER, ReturnType_INNER]):
|
|
418
418
|
def __call__(self, /, *args: P_INNER.args, **kwargs: P_INNER.kwargs) -> FunctionCall[ReturnType_INNER]:
|
|
419
419
|
"""Calls the function with the given arguments, without waiting for the results.
|
|
420
420
|
|
|
@@ -435,7 +435,7 @@ class Function(
|
|
|
435
435
|
"""
|
|
436
436
|
...
|
|
437
437
|
|
|
438
|
-
spawn: __spawn_spec[modal._functions.
|
|
438
|
+
spawn: __spawn_spec[modal._functions.P, modal._functions.ReturnType]
|
|
439
439
|
|
|
440
440
|
def get_raw_f(self) -> collections.abc.Callable[..., typing.Any]:
|
|
441
441
|
"""Return the inner Python object wrapped by this Modal Function."""
|
|
@@ -1641,8 +1641,16 @@ class _Sandbox(_Object, type_prefix="sb"):
|
|
|
1641
1641
|
return await _FileIO.create(path, mode, self._client, task_id)
|
|
1642
1642
|
|
|
1643
1643
|
async def ls(self, path: str) -> builtins.list[str]:
|
|
1644
|
-
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
1644
|
+
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
1645
|
+
|
|
1646
|
+
.. deprecated:: 2026-04-15
|
|
1647
|
+
Use `Sandbox.filesystem.list_files()` instead."""
|
|
1645
1648
|
self._ensure_v1("ls")
|
|
1649
|
+
deprecation_warning(
|
|
1650
|
+
(2026, 4, 15),
|
|
1651
|
+
"`Sandbox.ls()` is deprecated. Use `Sandbox.filesystem.list_files()` instead.",
|
|
1652
|
+
pending=True,
|
|
1653
|
+
)
|
|
1646
1654
|
task_id = await self._get_task_id()
|
|
1647
1655
|
return await ls(path, self._client, task_id)
|
|
1648
1656
|
|
|
@@ -613,7 +613,11 @@ class _Sandbox(modal._object._Object):
|
|
|
613
613
|
@typing.overload
|
|
614
614
|
async def open(self, path: str, mode: _typeshed.OpenBinaryMode) -> modal.file_io._FileIO[bytes]: ...
|
|
615
615
|
async def ls(self, path: str) -> list[str]:
|
|
616
|
-
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
616
|
+
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
617
|
+
|
|
618
|
+
.. deprecated:: 2026-04-15
|
|
619
|
+
Use `Sandbox.filesystem.list_files()` instead.
|
|
620
|
+
"""
|
|
617
621
|
...
|
|
618
622
|
|
|
619
623
|
async def mkdir(self, path: str, parents: bool = False) -> None:
|
|
@@ -1908,11 +1912,19 @@ class Sandbox(modal.object.Object):
|
|
|
1908
1912
|
|
|
1909
1913
|
class __ls_spec(typing_extensions.Protocol):
|
|
1910
1914
|
def __call__(self, /, path: str) -> list[str]:
|
|
1911
|
-
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
1915
|
+
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
1916
|
+
|
|
1917
|
+
.. deprecated:: 2026-04-15
|
|
1918
|
+
Use `Sandbox.filesystem.list_files()` instead.
|
|
1919
|
+
"""
|
|
1912
1920
|
...
|
|
1913
1921
|
|
|
1914
1922
|
async def aio(self, /, path: str) -> list[str]:
|
|
1915
|
-
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
1923
|
+
"""[Alpha] List the contents of a directory in the Sandbox.
|
|
1924
|
+
|
|
1925
|
+
.. deprecated:: 2026-04-15
|
|
1926
|
+
Use `Sandbox.filesystem.list_files()` instead.
|
|
1927
|
+
"""
|
|
1916
1928
|
...
|
|
1917
1929
|
|
|
1918
1930
|
ls: __ls_spec
|