Like GWT, Pyjamas translates a Python application and libraries (including UI widgets and DOM classes) into a Javascript application and libraries, and packages it all up:
pyjs translates Python code to Javascript by walking
the Python abstract syntax tree and generating Javascript.
pyjslib takes care of Python types that require
a custom Javascript implementation for pyjs to work. For example,
even though Python lists are similar to Javascript arrays, Python
lists are converted to custom objects that implement methods such
as append.
UI widgets and a DOM library are provided as a
convenience. They are written in Python and, like everything else,
they are translated to Javascript for deployment. These are based
on those in GWT.
build manages the overall translation of
individual components and creates a set of
.html
and .js
files that can be served up by a Web server.