porter-sandbox. Use it from application code running in your sandbox-enabled Porter cluster.
Install
Add the SDK to your application image:uv:
Create your first sandbox
Create a sandbox, execute a command, print the command output, and terminate the sandbox when the work is done:Fetch logs
Logs are returned as structured log lines:Get a sandbox by name
Useget(name) when you know the sandbox name:
List sandboxes
Use tags to find sandboxes created by a workflow:Async usage
UseAsyncPorter from async application code:
asyncio.gather:

