Skip to main content

E2B sandbox integration for Deep Agents

Project description

langchain-e2b

PyPI - Version PyPI - License PyPI - Downloads

Quick Install

After the package is published:

pip install langchain-e2b
from e2b import Sandbox

from langchain_e2b import E2BSandbox

sandbox = Sandbox.create()
backend = E2BSandbox(sandbox=sandbox)

try:
    result = backend.execute("echo hello")
    print(result.output)
finally:
    sandbox.kill()

What is this?

langchain-e2b adapts an existing E2B sandbox to the Deep Agents sandbox protocol. It uses the low-level e2b SDK so Deep Agents can run shell commands and move files through the standard Deep Agents backend interface.

This package intentionally does not hide E2B sandbox lifecycle management. Use the E2B SDK to create, connect to, configure, and kill sandboxes, then pass the connected sandbox object to E2BSandbox.

Contributing

Contributions are welcome. Keep the adapter focused on implementing the Deep Agents sandbox backend protocol over the official E2B SDK.

Development

uv sync --group test
make test
make lint

Integration tests require E2B_API_KEY:

E2B_API_KEY=... make integration_tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_e2b-0.0.1.tar.gz (120.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_e2b-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file langchain_e2b-0.0.1.tar.gz.

File metadata

  • Download URL: langchain_e2b-0.0.1.tar.gz
  • Upload date:
  • Size: 120.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for langchain_e2b-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ecf4d740979099dd1ab58eb836e8b061adfefc04a42b6784f69e33e34c02c166
MD5 a4a1df514d3b57caed9b88c70b4205cf
BLAKE2b-256 f0717f0e9bd616cbe173539ba67d4d8e42f7e0d53e74afb3209082b9cb7bf428

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_e2b-0.0.1.tar.gz:

Publisher: release.yml on e2b-dev/langchain-e2b

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_e2b-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: langchain_e2b-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for langchain_e2b-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd5d4e17a56a09db1e3d639d8992171ce3426682255e33f71943632d8997094a
MD5 2a61280122369f6c771b356e7d52d469
BLAKE2b-256 1920e44897521499ff8311b160d1d7c4466834616880e086b2bb3010e57c0fa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_e2b-0.0.1-py3-none-any.whl:

Publisher: release.yml on e2b-dev/langchain-e2b

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page