This allows for calling synchronous JS functions from Python but not async JS functions, right? PyExecJS [0] also doesn't work with async JS, but Js2Py [1] might.<p>[0] <a href="https://github.com/doloopwhile/PyExecJS/issues/20" rel="nofollow">https://github.com/doloopwhile/PyExecJS/issues/20</a>
[1] <a href="https://github.com/PiotrDabkowski/Js2Py/blob/05e77f0d4ffe91ef418a93860e666962cfd193b8/tests/includes/timer.js" rel="nofollow">https://github.com/PiotrDabkowski/Js2Py/blob/05e77f0d4ffe91e...</a>
Nice! I hadn't tested it yet, but I remember trying to run V8 in Python and it was a real mess - I think that even building it was problematic. I might use this project one day. Did you compare your bindings to alternatives?
I might be missing something, but can you show an example of calling the API from javascript?<p>You seem to be writing it in python and then calling it from within python in the example.
Silly question. Can I use this to interact with a machine learning model written in python from javascript on react native ? It'd be great if someone could point out the feasibility/limitations
Wouldn't it be more performant and less awkward to compile python to JS? Or is it for importing JS code into your python program? Well, why don't compile JS to Python then?