I have a web-app with javascript code that reads in a data file,
manipulates it, and saves the result to a data-url.
The code is currently invoked with a point-and-click interface.
Now I would like a user to be able to apply this code to hundreds of
data files. He can use python to cUrl the web-page and will get
javascript code in return, i.e. not the result.
He then needs to run the returned javascript in his own node.js or
V8 or similar engine.
I am looking for ways to achieve this in the collab.
There is a python module PyV8 https://pypi.python.org/pypi/PyV8
that can be used to run javascript in python, using Google’s
V8 javascript engine. It requires V8 to be installed. Is this something
that we might get to work in the collab?
Alternatively I could ofcourse install V8 on the webserver and return
the processed results instead of javascript code, but that places the
computational burden on the webserver and therefore has scalability
issues.
Any general advice on how to do automation in combination with javascript
is welcome; I am reluctant to write and maintain double code in both python
and javascript, and javascript is the only choice for web apps.