Releases: capsulerun/vpod
Releases · capsulerun/vpod
v0.1.1
v0.1.0
vpod - Lightweight, secure sandboxes for untrusted processes.
CLI
cargo install vpod# Pull a snapshot
vpod pull alpine:latest
# Start an interactive shell
vpodPython SDK
pip install vpodfrom vpod import Sandbox
# Run a command
sandbox = Sandbox.create()
result = sandbox.commands.run("whoami")
print(result.stdout) # root
# Persistent session — state preserved across calls
with Sandbox.create() as sandbox:
sandbox.commands.run("export API_KEY=secret")
result = sandbox.commands.run("echo $API_KEY")
print(result.stdout) # secret
# Python REPL — variables persist
with Sandbox.create() as sandbox:
sandbox.code.run("import requests")
sandbox.code.run("data = [1, 2, 3]")
result = sandbox.code.run("print(sum(data))")
print(result.text) # 6Note
The first call to Sandbox.create() downloads the default snapshot (alpine) and caches it locally.