There is a new project which should allow the Python programming language to run in web browsers with the help of WebAssembly.
The CPython on WASM The project, which will build the default and most popular implementation of the Python language written in C, is being developed by Berkeley-based software developer Ethan Smith.
Python on the web
“The new project that Christian Heimes and I are working on is aimed at making the web a supported platform for CPython, just like Windows or macOS,” Smith told The Register.
However, The register Note that at this point, the goal of the project to bring Python to the browser via WebAssembly’s Emscripten compiler is more use case activation than performance.
The project would follow on from another project, called Pyodid, which also allows Python code to run in the browser.
“Hopefully this will allow for a larger ecosystem of Python developers targeting the web and allow for easier integration with existing Python tools and processes, many of which Pyodide had to reinvent as micropip to replace the standard pip package installer. “, explained Forgeron.
Smith hopes his project can help facilitate the development of web-based cross-platform applications, but he quickly adds that CPython on WASM is still in the early stages of development.