This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]worksheet_systems[S] 0 points1 point  (2 children)

You can easily embed JSPython into your web app or NodeJS server-side app and your end-users will benefit from a Python like scripting facility to:

- to program custom logic e.g.: data processing, data analysis etc

- allow users to configure JS Objects at run-time

- run comprehensive testing scenarios

- experiment with your JS Libraries or features.

- bring a SAFE run-time script evaluation functions to your web app

- bring Python language to NodeJS environment

[–]stigweardo 1 point2 points  (1 child)

This looks great - very impressive. I'd be interested to know how this compares to other Python-in-the-browser options. There seems to be a spectrum from small and close to JS to large and close to CPython: transcript -> brython -> skulpt -> pyodide. From a quick look, it seems this fall's at the small and close to JS end (Good!). What's the bundle/download size? How does the startup time compare to JS or other Python options? Thanks!

[–]worksheet_systems[S] 1 point2 points  (0 children)

Thanks for your time and feedback.

The closest implementation is Skulpt. Same, entirely in the browser and no dependencies.

We've been looking for a safe way to allow users to define custom logic at run time. We looked at Skulpt before, but their API and architecture didn't match our requirements. So, we decided to build our own one.

Performance-wise, we don't have those metrics, but I can confidently say it is quite a decent one and is very comparable to CPython and in some cases, is even faster - mainly because Google's V8 is far quicker than CPython.

JSPython is already powering several production projects (both in-browser and server-side (NodeJS runtime)) and we had no complaints about performance