Skip to content

Real CPython 3.14 runs as python3 in a sandbox

Changelog

FeatureMajorBashkitCode

On main, not yet released

With the off-by-default cpython feature, python and python3 in Bashkit are CPython 3.14: the full language, the pure-Python standard library plus modules such as json, re, sqlite3 and asyncio, and CPython’s command line (-c, -m, files, stdin). Before, python3 was Monty, a Python subset.

let mut bash = Bash::builder().cpython().build();

CPython runs as a WebAssembly guest on wasmtime, started per call from a precompiled snapshot, with limits on time, memory, output and the VFS. urllib.request, http.client and Bashkit’s own requests and httpx modules make HTTP calls through the same allowlist and credential injection as curl.

See CPython, #2515, #2568 and #2572.