Modal backend implementation conforming to SandboxBackendProtocol.
This implementation inherits all file operation methods from BaseSandbox and only implements the execute() method using Modal's API.
ModalBackend(
self,
sandbox: modal.Sandbox,
)| Name | Type | Description |
|---|---|---|
sandbox* | modal.Sandbox | Active Modal Sandbox instance |
| Name | Type |
|---|---|
| sandbox | modal.Sandbox |
Execute a command in the sandbox and return ExecuteResponse.
Download multiple files from the Modal sandbox.
Supports partial success - individual downloads may fail without affecting others.
Upload multiple files to the Modal sandbox.
Supports partial success - individual uploads may fail without affecting others.