AsyncSandbox

class baseten.sandbox.AsyncSandbox

Bases: object

Async form of Sandbox.

Get one from AsyncSandboxClient.create(), AsyncSandboxClient.get(), or AsyncSandboxClient.sandbox_from_url().

Parameters:

context (AsyncSandboxContext)

property fs: AsyncSandboxFileSystem

Files and directories in the sandbox.

property name: str

Name of the sandbox. Empty when made from a URL alone.

property previews: AsyncSandboxPreviews

The sandbox’s previews, which expose its ports on HTTPS URLs.

Every call fails on a sandbox from AsyncSandboxClient.sandbox_from_url(), which has no name.

property process: AsyncSandboxProcess

Processes in the sandbox.

property raw_api: AsyncApiClient

The generated client for this sandbox’s execution API, authenticated.

For operations this SDK does not wrap. The generated API surface is not covered by stability guarantees and may change between versions.

property url: str

Base URL of the sandbox’s execution API.