Pyjamas iconPyjamas 0.7 / 0.8.1 Alpha 1

Pyjamas is a toolkit and library designed to enable writing AJAX applications in Python.
Pyjamas is a toolkit and library designed to enable writing AJAX applications in Python. Pyjamas is based on Google's GWT, which does the same thing for Java.

ike GWT, pyjamas involves the translation of the application and libraries (including UI widgets and DOM classes) to Javascript and the packaging up of that Javascript code.

There are two core developer tools included with pyjamas. pyjs translates Python code to Javascript by walking the Python abstract syntax tree and generating Javascript.

In many cases, built-in Python types require a custom Javascript implementation. For example, even though Python lists are similar to Javascript arrays, Python lists are converted to custom objects that implement methods like append. These custom objects required for translation by pyjs are defined in a library called pyjslib.

Like GWT, pyjamas comes with a set of UI widgets as well as a library for DOM manipulation. These libraries are written in Python but are, like everything else, translated to Javascript for deployment.

The overall translation of individual components is managed by build which also creates the necessary boilerplate code. The result is a set of .html and .js files that can be served up by a Web server.

There are other components planned which have not been covered here such as server-side code for communication in client-server applications.

last updated on:
April 19th, 2012, 10:30 GMT
price:
FREE!
developed by:
James Tauber
license type:
GPL (GNU General Public License) 
category:
ROOT \ Programming \ Widgets

FREE!

In a hurry? Add it to your Download Basket!

user rating 20

UNRATED
3.1/5
 

0/5

What's New in version 0.8 Alpha 1
  • Simple sys.stdout and sys.stderr objects were added. sys.exc_info() was fixed to behave more like Python.
  • A very basic traceback module was added.
  • oninput and onpropertychange event support was added.
  • A getWidget problem with HTMLTable under pyjd on Windows was fixed.
read full changelog

Add your review!

SUBMIT