PythonMonkey allows Python developers to use complex JavaScript libraries without awkward syntax or performance penalties. This deep integration of JavaScript and Python is achieved by embedding a SpiderMonkey runtime in the Python VM. PythonMonkey makes it possible to share data, functions, events, etc, across runtimes. Data sharing respects host language idioms and shares memory between runtimes whenever possible. Source Code PyPI PIP package
$ pip install pythonmonkey
>>> import pythonmonkey as pm
>>> hello = pm.eval(" 'Hello World'.toUpperCase(); ")
>>> print(hello)
'HELLO WORLD'
                

About PythonMonkey

PythonMonkey embeds Mozilla's SpiderMonkey JavaScript/WebAssembly Engine in Python with high level bindings. It enables Python developers to leverage the JavaScript ecosystem through Python with ease and excellent CPU/memory performance.


Pythonmonkey was built by a team at Distributive in order to port complex JavaScript libraries to Python while only having to maintain one codebase. PythonMonkey powers Distributive's Python SDK for DCP.

Blog

This site uses cookies to track unique visitors via Google Analytics. Distributive does not and will not share this data with anyone.