Skip to content
Python to JavaScript translator
Find file
Pull request Compare This branch is 107 commits behind qsnake:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
examples
tests
.gitignore
AUTHORS
LICENSE
README.rst
math.js
py-builtins.js
py2js.py
run_tests.py
test_results.txt

README.rst

py2js

Python to JavaScript translator.

Installation

git clone git://github.com/qsnake/py2js.git cd py2js

Examples

firefox examples/gol.html

And the game of life should show in the browser. If it doesn't, it's a bug. You can generate that file using

python examples/gol.py > examples/gol.html

Tests

./run_tests.py

will run all tests, that are supposed to work. If any test fails, it's a bug.

./run_tests.py -a

will run all tests including those that are known to fail (currently). It should be understandable from the output.

License

MIT, see the LICENSE file for exact details.

Something went wrong with that request. Please try again.