ReadWriteWeb

Pyjamas: Build AJAX Apps in Python

Written by Lidija Davis / November 29, 2008 10:03 AM / 3 Comments

pyjamas_logo_nov_08.jpgAccording to the Pyjamas website, many people, when discovering Google Web Toolkit wonder why they can't use Python instead of Java.

With Pyjamas, this is now possible.

Similar to GWT, a Java software development framework, Pyjamas is a cross-browser Web App development API that allows you to write your client side functionality in Python instead of Java.

While it looks like a desktop API, Pyjamas is a stand alone Python to JavaScript compiler, an AJAX framework / library and a comprehensive widget set API.

The advantage of using Pyjamas is that you can write Web applications in Python instead of HTML and JavaScript; rather than trying to fit as much HTML as you can into one page, you can reuse and import classes and modules.

Additionally, the AJAX library deals with the entire browser interoperability issue - you don't need to worry about the browser wars to make your app cross browser compatible for IE6, IE7, Firefox, Safari, Opera etc.

pyjamas_nov_08.jpg

If you're interested in learning more, the Pyjamas site points to a tutorial, an online version of the Pyjamas Book, and other useful links.

Comments

Subscribe to comments for this post OR Subscribe to comments for all ReadWriteWeb posts

  1. Java != JavaScript.

    Posted by: Chris | November 29, 2008 5:12 PM



  2. @Chris: believe it or not, GWT is a Java toolkit.

    Posted by: frits | November 29, 2008 9:50 PM



  3. These javascript compilers - RubyJS, Pyjamas and GWT - are conceptually quite a stunning leap of faith and imagination to comprehend.

    The prevalence of javascript is so high, and the disillusionment so entrenched, that when something this significant comes along that takes away all the pain of developing comprehensive web applications, not only is there a high signal-to-noise ratio to overcome but also it takes a long, long time for it to sink in to people's minds that yes, web development doesn't have to be as mind-blowingly painful as it's been for the last decade.

    Even as the de-facto lead developer, it was a year before i got fed up with CSS / HTML / Javascript manual programming before i initially started using pyjamas, and it was several months before the "squishy" feeling went away, whenever running a build of the python source to turn it into javascript.

    so.

    yes.

    java != javascript - we know!!!

    however with GWT, java ==> gets_built_and_turned_into ==> javascript

    likewise, python != javascript - we know!!

    however, with Pyjamas, python ==> gets_built_and_turned_into ==> javascript.

    similarly with RubyJS and its associated (independent) library, rwt, which is an up-and-coming port of GWT to Ruby.

    http://rubyforge.org/projects/rubyjs

    Posted by: lkcl.myopenid.com Author Profile Page | December 2, 2008 5:15 AM



The ReadWrite Real-Time Web Summit
RWW SPONSORS


FOLLOW @RWW ON TWITTER

ReadWriteWeb on Facebook



TEXT LINK ADS