Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python to JavaScript translator

This branch is 89 commits ahead, 4 commits behind chrivers:master

Failed to load latest commit information.
debian + Changelog
doc * The big rename commit. The project is now officially called pyjaco!
examples Add a comprehensive example of using pyjaco and jquery to build a tod…
pyjaco + Implemented __abs__ for number type
tests + Added test for abs()
testtools - Removed historical "[4]" string on test run
.gitignore add for easy_install and pip and change gitignore
AUTHORS add for easy_install and pip and change gitignore
LICENSE * Updated LICENSE file
Makefile * Updated "stdlib:" target in Makefile to new pyjs parameter styles
README.rst improved usage instructions using a code block.
casetest - Removed debug messages for htmltest * Avoid stdlib/.* when compiling library
pylint.conf + Increased line length limit to 120 chars * The big rename commit. The project is now officially called pyjaco! I forgot to update the distributed libraries directory.


Python to JavaScript translator.




Execute the following:

git clone
cd pyjaco


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/ > examples/gol.html



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

./ foo

Will run all tests with "foo" in the name. Very useful for running a group of tests.

./ -a

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

./ -x or ./ --no-error

Will run tests but ignore if an error is raised by the test. This is not affecting the error generated by the test files in the tests directory.

For more flags then described here

./ -h

Single test cases

With the "casetest" script you can keep comparing the output of pyjaco to the output of python on the same python script. It's very useful if you are debugging the compiler or standard library.


Will run through python and pyjaco, and display the differences. It will then display a line of "#", and wait for you to press enter to do another iteration. When the files match, casetest will exit.


From source code:

import sys
    from pyjaco import Compiler
    code = open("", "r")
    compiler = Compiler()
    print str(compiler)

Using the script:

./ --output filename.js --watch


Free Software. See the LICENSE file for exact details.

Something went wrong with that request. Please try again.