Skip to main content

E2B sandbox integration for Deep Agents

Project description

langchain-e2b

PyPI - Version PyPI - License PyPI - Downloads

Quick Install

pip install langchain-e2b
from langchain_e2b import E2BProvider

provider = E2BProvider()
sandbox = provider.get_or_create()

try:
    result = sandbox.execute("echo hello")
    print(result.output)
finally:
    provider.delete(sandbox_id=sandbox.id)

What is this?

langchain-e2b adapts E2B sandboxes to the Deep Agents sandbox protocol. It uses the low-level e2b SDK so Deep Agents can create or reconnect to sandboxes, run shell commands, and move files through the standard Deep Agents sandbox interface.

Use E2BProvider when you want the package to manage sandbox lifecycle. Use E2BSandbox directly when you already have an E2B SDK sandbox object.

Contributing

Contributions are welcome. Keep the adapter focused on implementing the Deep Agents sandbox 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.2.tar.gz (122.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.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_e2b-0.0.2.tar.gz
  • Upload date:
  • Size: 122.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.2.tar.gz
Algorithm Hash digest
SHA256 a65dd44c2750fff04a62414b95e1c7af843a3ca643b10d66646339dee2fca176
MD5 76b649a96c62f0db6c9fca34c0f0bffd
BLAKE2b-256 be78dc4c8434745ef3421eb39a3197ddbf59aeaeda5281ce8d9c973d19387546

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_e2b-0.0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: langchain_e2b-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8972cd80e314941040c48a131ba1b6b161a16745108559b4114551f19f8c18fe
MD5 242abcbae59b113e203b941d63c2f877
BLAKE2b-256 4c282030b7f2585af022a04e51fc69477732e51f2681db88b0ec99ee03469386

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_e2b-0.0.2-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