E2bEx (E2bEx v0.1.0)

Copy Markdown View Source

Elixir client for the E2B API (Sandboxes, Templates, Tags).

Quick start

client = E2bEx.client(api_key: "e2b_...")

{:ok, sandbox} = E2bEx.Sandboxes.create(client, %{templateID: "base"})
{:ok, sandboxes} = E2bEx.Sandboxes.list(client)
:ok = E2bEx.Sandboxes.kill(client, sandbox.sandbox_id)

Every call returns {:ok, value} / :ok, or {:error, %E2bEx.Error{}}.

See E2bEx.Sandboxes, E2bEx.Templates, and E2bEx.Tags for the full API.

Summary

Functions

Build a client. See E2bEx.Client.new/1 for options.

Functions

client(opts \\ [])

@spec client(keyword()) :: E2bEx.Client.t()

Build a client. See E2bEx.Client.new/1 for options.