langchain-pilldrops
PillDrops sandbox integration for Deep Agents. The agent's shell commands and file tools run in a PillDrops cloud sandbox instead of on your machine.
Install
pip install langchain-pilldrops
export PILLDROPS_API_KEY=sf_live_... # from https://pilldrops.com/dashboard
Use
from deepagents import create_deep_agent
from pilldrops import Sandbox
from langchain_pilldrops import PillDropsSandbox
sandbox = Sandbox.create(template="code-interpreter", timeout=1800)
try:
agent = create_deep_agent(
model="anthropic:claude-opus-5-5",
backend=PillDropsSandbox(sandbox=sandbox),
)
result = agent.invoke({"messages": [{"role": "user", "content": "Write fib.py, run it for n=30 and tell me the result"}]})
print(result["messages"][-1].content)
finally:
sandbox.kill()
The backend on its own:
backend = PillDropsSandbox(sandbox=sandbox, timeout=300)
print(backend.execute("python3 --version").output)
backend.upload_files([("/tmp/data.csv", b"a,b\n1,2\n")])
print(backend.download_files(["/tmp/data.csv"])[0].content)
Notes
- Any template works:
code-interpreterhas Python with the data stack,nodehas Node.js,browserhas Chromium. See templates. timeoutis the default for each command, in seconds (30 minutes unless set). The sandbox's own lifetime is set onSandbox.create(timeout=...).- Uploads and downloads work for any absolute path. A download is limited to about 7 MB; use
sandbox.download()from the PillDrops SDK for larger files.
License
MIT
Metadata
Release files for langchain-pilldrops 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_pilldrops-0.1.0.tar.gz | 3.6 kB | Without provenance | Details for langchain_pilldrops-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_pilldrops-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_pilldrops-0.1.0-py3-none-any.whl |
Total release size: 7.4 kB
Release files / langchain_pilldrops-0.1.0.tar.gz
| Download URL | langchain_pilldrops-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f03442769e80f1a0cd828aad04741a3ac193ddc02fa64618433f5135cac60ec
|
|
BLAKE2b-256 checksum How to use checksums |
c0279cefb376b9f70c81679f33eb8c5204c81ec836a6b81e02f1612066ff78a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Release files / langchain_pilldrops-0.1.0-py3-none-any.whl
| Download URL | langchain_pilldrops-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ede2202d61a87381419388dea6ede799b9b7d7104e66569e61b48f9626dbc5e5
|
|
BLAKE2b-256 checksum How to use checksums |
9b3f5cd446d70906048903af3bdb9b271d60b631654b374ed8b1925ef3d5a419
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Security for langchain-pilldrops 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.