JavaScript to Python translator and JavaScript interpreter written in pure Python. Converts JavaScript code to Python (execjs) or executes it directly. Version 0.74.1, maintenance mode with no new features.
pip install js2py-3-13No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a JavaScript execution context, run JS code, and access variables.
Use pyexecjs or call Node.js directly.
Transpile modern JS to ES5 (using Babel) before passing to Js2Py.
Prefer `EvalJs` with manual script loading.
No dependency data recorded yet.