pyjs
is C++ library, compiled to wasm, which allows to run Python code in the browser or in node.
While this would be possible, it would be a very limited API.
pyjs
not only allows you to call Python from JavaScript, but also calling JavaScript from Python.
- The code of
pyodide
is strongly coupled to pyodides packaging system whilepyjs
focus onemscripten-forge
. pyodide
uses raw Pthon-C-API whilepyjs
uses high levelpybind11
pyjs
usesembind
instead of emscriptens more raw apis