Skip to main content

cocoonstack-sandbox-langchain

pip install cocoonstack-sandbox-langchain

LangChain tools backed by cocoon microVM sandboxes: a CocoonToolkit claims one sandbox lazily on first tool use and exposes it as StructuredTools an agent can call — shell exec, file read/write, and directory listing, with disk state persisting across calls.

from cocoonsandbox_langchain import CocoonToolkit
from langgraph.prebuilt import create_react_agent  # langgraph is a separate install

with CocoonToolkit("10.0.0.5:7777", api_token="...") as kit:
    agent = create_react_agent(model, kit.get_tools())
    agent.invoke({"messages": [("user", "run the tests in /work")]})

from_checkpoint="ck_..." branches the sandbox from a checkpoint's captured moment instead of a clean template — agents resume from prepared state (dependencies installed, repo cloned) in milliseconds.

Sync-native (each tool's function calls the stdlib-only cocoonstack-sandbox SDK directly); async agents get a coroutine bridged via asyncio.to_thread.

Full reference: https://cocoonstack.github.io/sandbox/langchain

Metadata

Release files for cocoonstack-sandbox-langchain 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cocoonstack-sandbox-langchain 0.1.4
File Size Uploaded Provenance Actions
cocoonstack_sandbox_langchain-0.1.4.tar.gz 9.6 kB With provenance Details for cocoonstack_sandbox_langchain-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cocoonstack-sandbox-langchain 0.1.4
File Interpreter ABI Platform Actions
cocoonstack_sandbox_langchain-0.1.4-py3-none-any.whl Python 3 none any Details for cocoonstack_sandbox_langchain-0.1.4-py3-none-any.whl

Total release size: 18.5 kB

Release files / cocoonstack_sandbox_langchain-0.1.4.tar.gz

Download URL cocoonstack_sandbox_langchain-0.1.4.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ce105267058aa49bff69efe99fcd3b80e1b8c8a8257755357822d1d1624f5a8e
BLAKE2b-256 checksum
How to use checksums
7f66d08e12742e93e066d3d08a3cdc445a17ad5ba5138311b009c7ce2ead39fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Release files / cocoonstack_sandbox_langchain-0.1.4-py3-none-any.whl

Download URL cocoonstack_sandbox_langchain-0.1.4-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f19cde9d347ed76783c2c369cf64e50e0626a93573385773e5a8bbce4b0d8722
BLAKE2b-256 checksum
How to use checksums
63c5402d64a3d2404ebdab18a366b7049be56a58878b81e060baa6f781c7bea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

Security for cocoonstack-sandbox-langchain 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cocoonstack_sandbox_langchain-0.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page