Overview

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:

Overview of Pyjamas' components

[1] pyjs translates Python code to Javascript by walking the Python abstract syntax tree and generating Javascript.

[2] 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.

[3] 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.

[4] 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.