Skip to content

Releases: capsulerun/vpod

v0.1.1

09 Jun 11:13
e639ba0

Choose a tag to compare

Improvements & fixes

  • Improved WSL (Windows) compatibility
  • Enabled network requests for the Python SDK

v0.1.0

08 Jun 22:31
b478b1d

Choose a tag to compare

vpod - Lightweight, secure sandboxes for untrusted processes.

CLI

cargo install vpod
# Pull a snapshot
vpod pull alpine:latest

# Start an interactive shell
vpod

Python SDK

pip install vpod
from 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)  # 6

Note

The first call to Sandbox.create() downloads the default snapshot (alpine) and caches it locally.