PyMiniRacer v0.12.2
Call your Python from your JavaScript from your Python
The dynamic language embedding turducken is complete: you can now call Python from JavaScript from Python!
As of PyMiniRacer v0.12.2
, you can
write logic in Python and expose it to V8’s JavaScript sandbox. You can now in
theory, while writing only Python and JavaScript, create your own JS extension
library similar to
NodeJS’s standard library. Obviously,
anything created this way this will almost certainly be less extensive, less
standardized, and less efficient than the NodeJS standard library; but it will
be more tailored to your needs.
This post follows up on prior content related to reviving PyMiniRacer and then giving Python code the power to directly poke JS Objects, call JS Functions, and await JS Promises.