Brython (Python in the browser)

Johannes Schneider johannes.schneider at
Fri Dec 27 17:12:09 CET 2013

On 27.12.2013 07:14, Pierre Quentel wrote:
> Hi,
> Ever wanted to use Python instead of Javascript for web client programming ? Take a look at Brython, an implementation of Python 3 in the browser, with an interface with DOM elements and events
> Its use is very simple :
> - load the Javascript library brython.js : <script src="/path/to/brython.js">
> - embed Python code inside a tag <script type="text/python">
> - run the Python script on page load : <body onload="brython()">
> The Python code is translated into Javascript and executed on the fly
> Brython supports the DOM API, HTML5, SVG, with some syntaxic sugar to make the interface more concise (a la jQuery) ; interaction with Javascript libraries is very straightforward. The Brython site provides documentation and many examples
> After 1 year of intense development, Brython now covers most of the Python3 syntax and can run most of the modules of the Python3.3 standard distribution unmodified, including complex packages like unittest. The team aims at covering 100% of all of Python that makes sense in a browser environment
> Home page :
> Development site :
> Downloads :
> Community :!forum/brython

that's amazing.
is there any python construct which is not usable with brython? OR, the 
oder way around, anything possible in JS, which does not work in brython?


Johannes Schneider
johannes.schneider at

Galileo Press GmbH
Rheinwerkallee 4 - 53227 Bonn - Germany
Tel.: + (Zentrale) .77 (Fax)

Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker
HRB 8363 Amtsgericht Bonn

More information about the Python-list mailing list