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.5.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.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_ppio-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 729d49733450a61fe287d01c8b38297c9e6502618e5a6fa2c1ea5e17b7b55ccd
MD5 29e78c57808d75fdbbb9c93afb4b6c8c
BLAKE2b-256 96a0ea8e3e7bb65a42822d5127a66d6860547efd76538726e050eb2bbca94766

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_ppio-0.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: langchain_ppio-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8a24c72ccdb66aab15b325df73812a08e06ad53d9ff26813b3c68c8d2190a6c1
MD5 5ea0b79facb2bde2f6af106737b90769
BLAKE2b-256 11c2a340e1b3883a87ed3f0caa6c14581ea77b8417a60714f51800c2924801e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_ppio-0.0.5-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