Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by theanonymousone on Wednesday September 24, 2025 @12:14PM
(#45362432)
Hasn't Pyodide been available for some years now?
[ Parent
| on HN ]
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by simonw on Wednesday September 24, 2025 @12:16PM
(#45362470)
Yes but it works only in the browser - running Pyodide outside of a browser is a lot of extra work.
My previous attempts are described here:
- https://til.simonwillison.net/deno/pyodide-sandbox
- https://til.simonwillison.net/webassembly/python-in-a-wasm-s...
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by almostgotcaught on Wednesday September 24, 2025 @12:39PM
(#45362798)
not true
pyodide venv .venv-pyodide
source .venv-pyodide/bin/activate
I don't know what runtime it uses but I have tests in nightly CI that run exactly like this.see https://pyodide.org/en/stable/development/building-packages-...
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by simonw on Wednesday September 24, 2025 @12:43PM
(#45362851)
Interesting - I hadn't seen that before:
> Pyodide provides an experimental command line runner for testing packages against Pyodide. Using it requires nodejs version 20 or newer.
Looks like it's a recent addition?
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by almostgotcaught on Wednesday September 24, 2025 @12:46PM
(#45362890)
No clue - I added that CI job around 6 months ago.
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by simonw on Wednesday September 24, 2025 @12:49PM
(#45362928)
I tracked it down to this PR from September 2022, so it's been around for a while: https://github.com/pyodide/pyodide/pull/2976
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by ZhiqiangWang on Wednesday September 24, 2025 @05:15PM
(#45366050)
What is the point of running python in webassembly outside browser?
Re:Python on the Edge: Fast, sandboxed, and powered by WebAs...
by simonw on Wednesday September 24, 2025 @05:16PM
(#45366064)
See comment here: https://news.ycombinator.com/item?id=45365165
I want a robust sandbox I can run untrusted code in, outside of the browser.