Python To Javascript Converter
Solution 1:
You can actually run a Python interpreter directly in JS thanks to emscripten.
The project is called empythoned:
Empythoned is a build script that uses Emscripten to compile CPython for use in a browser. It attempts to compile the main interpreter as a single small executable and the whole standard library as dynamically loaded libraries.
but be warned:
The project is in its infancy. Right now the core interpreter works very well, but many of the libraries either don't work at all or contain various bugs.
Solution 2:
You should try this:
http://gatc.ca/projects/pyjsdl/
It works fine with regular python and even supports pygame.
Solution 3:
You might want to look into RapydScript. It is actively maintained (as of Oct 2014) and comes with a couple of cute examples which actually work.
Post a Comment for "Python To Javascript Converter"