void4 opened issue #13333:
I came across this example: https://til.simonwillison.net/webassembly/python-in-a-wasm-sandbox which only shows how to get the result as an output at the end of Python execution.
Is it possible to have the sandboxed script call external Python functions provided by wasmtime?
bjorn3 commented on issue #13333:
This would be more of a question for https://github.com/vmware-labs/webassembly-language-runtimes
alexcrichton closed issue #13333:
I came across this example: https://til.simonwillison.net/webassembly/python-in-a-wasm-sandbox which only shows how to get the result as an output at the end of Python execution.
Is it possible to have the sandboxed script call external Python functions provided by wasmtime?
alexcrichton commented on issue #13333:
Another example you might be interested in is https://github.com/bytecodealliance/wasmtime-py/ for a Wasmtime embedding in Python. Otherwise though it looks like this is answered, so I'm going to close. Happy to follow-up if needed, however.
tschneidereit commented on issue #13333:
And you might also want to take a look at bytecodealliance/componentize-py, which is a much more fully-featured Python embedding in wasm.
void4 commented on issue #13333:
Thank you!
Last updated: Jun 01 2026 at 09:49 UTC