Pyjamas: writing AJAX applications in Python | Linux Today

Pyjamas: writing AJAX applications in Python

Written By
Web Webster
Web Webster
Sep 8, 2009

“Essentially, a developer uses the pyjamas-supplied libraries
that provide user interface widgets and Document Object Model (DOM)
control from Python. This code is then combined with a library that
implements various Javascript language features in Python—an
impedance-matching layer between the two languages called
pyjslib—and turned into Javascript and HTML that can be
loaded into a browser. The pyjs program “translates Python code to
Javascript by walking the Python abstract syntax tree and
generating Javascript”.

“But, using pyjamas is not at all like “normal” web programming.
As the web site and FAQ are quick to point out, pyjamas is not just
another AJAX (Asynchronous Javascript and XML) framework, it is
more akin to writing a desktop program that is translated into web
application. In fact, Pyjamas-Desktop allows the same code that is
developed for the web application to be run, unmodified, on the
desktop. The same Python source that gets fed into the translator
can, instead, be run, and, more importantly, debugged, on the
developer’s desktop.”

Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.