Skip to main content

PPIO sandbox integration for Deep Agents

Project description

langchain-ppio

langchain-ppio provides a PPIO sandbox backend for Deep Agents, implemented with the PPIO E2B-compatible API.

Install

uv add langchain-ppio

Quick Start

import os
from pathlib import Path

from e2b import Sandbox
from langchain_ppio import PPIOSandbox

# Required for PPIO E2B compatibility
os.environ.setdefault("E2B_DOMAIN", "sandbox.ppio.cn")
if not os.getenv("E2B_API_KEY") and Path("ppio_key").exists():
    os.environ["E2B_API_KEY"] = Path("ppio_key").read_text().strip()

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

result = backend.execute("echo hello")
print(result.output)

sandbox.kill()

Run Smoke Test

uv run langchain-ppio-smoke

The smoke command reads E2B_API_KEY first, then falls back to ppio_key.
E2B_DOMAIN defaults to sandbox.ppio.cn.

Build & Publish With uv

uv build
uv publish

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_ppio-0.0.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

langchain_ppio-0.0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file langchain_ppio-0.0.3.tar.gz.

File metadata

  • Download URL: langchain_ppio-0.0.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_ppio-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7a52b437aade182a4adb84c4044f0dde61b92d59636efaf899f52fe5624d5191
MD5 8ef1c4c0c4b980cf820d815e7f439068
BLAKE2b-256 4c334ae6e4cf19e13338d52a0448de3da58f31e4572c7ba47acc3fbae1b904fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_ppio-0.0.3.tar.gz:

Publisher: publish-pypi.yml on zson-two/langchain-ppio

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_ppio-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: langchain_ppio-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_ppio-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 242bb95e1236dd461e48ef0c4ae07825f076d029873d98829fb53e5b75f5d6d1
MD5 94426a1f52695ed0885c8d1a5871917d
BLAKE2b-256 21a2b4148749a4d9fff46d9adebd41e1af2cf33a374930b953cf38ce1176a6f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_ppio-0.0.3-py3-none-any.whl:

Publisher: publish-pypi.yml on zson-two/langchain-ppio

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