Skip to content

Instantly share code, notes, and snippets.

View wiwichips's full-sized avatar
🐿️

Will Pringle wiwichips

🐿️
View GitHub Profile
@wiwichips
wiwichips / run-js-in-python.md
Created August 10, 2023 21:21
How to Call JavaScript Functions in Python

Using PythonMonkey to Execute JavaScript Code in Python

What is PythonMonkey?

PythonMonkey (GitHub Link) is a Python library designed to integrate the Python and JavaScript ecosystems. It uses Mozilla’s SpiderMonkey engine to execute JavaScript and WebAssembly within Python. This approach allows Python developers to interact with JavaScript libraries, modules, and WebAssembly more efficiently.

Read the Release article: Run JavaScript/WASM in Python: high-level SpiderMonkey bindings to Python with PythonMonkey