Description
This issue will capture progress on making license-expression
and boolean.py
into online tools.
Transpiling tools that did not quite work:
-
RapydScript https://github.com/atsepkov/RapydScript
Lacks support for importing things (like,import __future__
), its list of importable modules is here -
Batavia https://github.com/pybee/batavia
The idea here is to compile python to its bytecode and then run it in a javascript vm. Because python bytecode changes from version to version,batavia
currently supports3.4.4
and possibly3.5.x
(their docs state many things). My problem was compiling those pythons on Archlinux and when I finally did a) their test suite did not quite pass and b) it chocked onimport __future__
. -
PyPyJS https://github.com/pypyjs/pypyjs
The whole thing is complicated and I failed to make it work. Main demotivator: the website offers python2.7.9
and there is a github issue that indicatespython 3
support is stalling.
Transpiling tools that look promising:
-
Transcrypt https://github.com/qquick/Transcrypt and http://transcrypt.org
This is currently the only candidate that has a distinct transpiling step (you actually see the.js
files as a result) that could be made to work. However, there are problems which are summarized on SO. -
Brython https://github.com/brython-dev/brython
The most laid-back approach: just works, delivers results but sometimes the resulting boolean expressions come out wrong (runtime error).
Transpiling tools that look promising but not yet tried:
-
Skulpt http://www.skulpt.org/
It looks similar to Brython, which is why untried.