Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python to Javascript compiler
branch: master
Failed to load latest commit information.
pyjs Exclude argnames when finding locals.
Readme.md Fixed Readme filename.
setup.py Added support for more nodes.

Readme.md

pyjs: Python to Javascript compiler

pyjs compiles Python code into Javascript.

>>> import pyjs

>>> print pyjs.compile("def square(x): return x*x")
function square(x) {
    return x*x;
}

Release Plan

0.1

  • Compiles all python code
  • Not supported: imports, classes, yield, list comprehensions, generator expression, nested scopes, keyword arguments, ellipses, exec

0.2

  • nested scopes
  • keyword arguments
Something went wrong with that request. Please try again.