Skip to content

v0.6.0

Choose a tag to compare

@clemlesne clemlesne released this 18 Jan 13:08
· 399 commits to main since this release

What's New

sbx Command-Line Interface

New CLI for quick sandbox execution from the terminal:

# Inline code (auto-detects Python)
sbx 'print("hello")'

# File input (language from extension)
sbx script.py

# With packages and network
sbx -p pandas -p numpy --network 'import pandas; print(pandas.__version__)'

# Stdin
echo 'console.log(42)' | sbx -l javascript -

Options: -l language, -p package, -t timeout, -m memory, -e env var, --network, --allow-domain, --json output, -q quiet. Exit codes: 0 success, 2 CLI error, 124 timeout, 125 sandbox error.

Multi-Input Concurrent Execution

Run multiple code sources concurrently:

sbx 'print(1)' 'print(2)' script.py    # positional args
sbx -c 'print(1)' -c 'print(2)'        # repeatable -c flag
sbx -j 5 *.py                           # glob with concurrency limit

Per-source language auto-detection, grouped output with pass/fail summary, JSON array output for scripting.

Dependencies

  • Added click~=8.0 for CLI framework

Full Changelog: v0.5.3...v0.6.0