Python reference¶
Generated from the docstrings of the rayito package (pip install rayito);
the docstrings themselves are written in Spanish.
Everything shown here is imported from rayito (or from rayito.e2b for
the E2B shim); modules with a leading underscore are internal.
| Page | What it contains |
|---|---|
| Sandbox | Sandbox and AsyncSandbox: create, connect, run, pause, destroy |
| Subclients | sbx.commands, sbx.files, sbx.pty, sbx.git, sbx.agent (with AgentSpec, its events and the model gateways), their handles and the listing paginator |
| Pool | SandboxPool, AsyncSandboxPool, PoolConfig and the backends |
| Models | the data types: SandboxInfo, Execution, Result, EntryInfo, S3Staging, the charts, ClientSettings, TransportSettings... |
| Optional | the features that cost money, off by default: secrets, index, S3 mounts, sizes, events, OTLP, secret gateway, templates, optional stacks, EFS volumes and custom domain (the last two experimental) |
| Exceptions | the error hierarchy |
| E2B shim | rayito.e2b: the E2B 2.x SDK on top of Rayito |
rayito.__version__ returns the version of the installed package.
Conventions:
- Times are in seconds (
timeout=60); in TypeScript, in milliseconds (timeoutMs: 60_000). SandboxandAsyncSandboxhave the same surface; inAsyncSandboxevery method is a coroutine.- Several methods work both as an instance method and as a class method
taking the sandbox id (
sbx.kill()andSandbox.kill(sandbox_id)).
TypeScript equivalents: TypeScript reference.