smolagents-capsule
Capsule integration for smolagents
What is this?
smolagents-capsule gives smolagents the ability to safely execute Python and JavaScript code in an isolated WebAssembly sandbox.
The WebAssembly sandbox files (.wasm) are already bundled inside this package; no configuration or network request is necessary to execute the sandboxes dynamically.
Installation
pip install smolagents-capsule
Usage
The package provides tools for executing code inside an isolated environment.
from smolagents_capsule import CapsulePythonTool, CapsuleJSTool
# Python Example
python_tool = CapsulePythonTool()
result = python_tool.forward("1 + 1")
print(result) # "2"
# JavaScript / TypeScript Example
js_tool = CapsuleJSTool()
result = js_tool.forward("1 + 2")
print(result) # "3"
Visit Capsule repository for more information.
License
MIT License
Metadata
Release files for smolagents-capsule 0.1.3
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 |
|---|---|---|---|---|
| smolagents_capsule-0.1.3.tar.gz | 20.4 MB | Without provenance | Details for smolagents_capsule-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smolagents_capsule-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for smolagents_capsule-0.1.3-py2.py3-none-any.whl |
Total release size: 40.9 MB
Release files / smolagents_capsule-0.1.3.tar.gz
| Download URL | smolagents_capsule-0.1.3.tar.gz |
|---|---|
| Size | 20.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6665d3624496ed571fc9d4b908489e2dd959bb207d20132b7f9f3ca9f7c102f
|
|
BLAKE2b-256 checksum How to use checksums |
5ef4129a50c80ab0bacda8b8cdd6e767840256e33470627a3b10a4de5e1174b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / smolagents_capsule-0.1.3-py2.py3-none-any.whl
| Download URL | smolagents_capsule-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 20.5 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ceebe05a44262e69d041000c3e39857a4b87b842cf43f0e87539987cb4fdd3d6
|
|
BLAKE2b-256 checksum How to use checksums |
79080c5ca41191fd790abeb93da00ad9f4623fd39ed0a9667eab5ba21f90dfb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for smolagents-capsule 0.1.3
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.