Skip to main content

E2BClientParams

Params bound to an :class:E2B client, used as the defaults for every call made through its resource classes. Same shape as :class:ApiParams.

E2B

E2B client with an explicitly bound connection configuration. The resource classes exposed by the client (Sandbox, AsyncSandbox, Volume, AsyncVolume, Template, AsyncTemplate, Secret, AsyncSecret) behave exactly like the top-level exports of the same name, except the params passed to the client are used as the defaults instead of the environment variables. Per-call params still take precedence over the client’s params. Multiple clients are fully isolated from each other and from the top-level env-configured exports. Example:

__init__

Create a new client with the API params bound to it. Arguments:
  • opts: API params used as the defaults for every call made through this client’s resource classes.