Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62782 > unrolled thread
| Started by | Pierre Quentel <pierre.quentel@gmail.com> |
|---|---|
| First post | 2013-12-26 22:14 -0800 |
| Last post | 2013-12-27 11:02 -0800 |
| Articles | 7 — 5 participants |
Back to article view | Back to comp.lang.python
Brython (Python in the browser) Pierre Quentel <pierre.quentel@gmail.com> - 2013-12-26 22:14 -0800
Re: Brython (Python in the browser) Roy Smith <roy@panix.com> - 2013-12-27 09:37 -0500
Re: Brython (Python in the browser) jonas.thornvall@gmail.com - 2013-12-27 06:56 -0800
Re: Brython (Python in the browser) Pierre Quentel <pierre.quentel@gmail.com> - 2013-12-27 09:54 -0800
Re: Brython (Python in the browser) Johannes Schneider <johannes.schneider@galileo-press.de> - 2013-12-27 17:12 +0100
Re: Brython (Python in the browser) Pierre Quentel <pierre.quentel@gmail.com> - 2013-12-27 10:01 -0800
Re: Brython (Python in the browser) billy.earney@gmail.com - 2013-12-27 11:02 -0800
| From | Pierre Quentel <pierre.quentel@gmail.com> |
|---|---|
| Date | 2013-12-26 22:14 -0800 |
| Subject | Brython (Python in the browser) |
| Message-ID | <234a1a8d-e491-4eec-8bd5-7931cf4f74ec@googlegroups.com> |
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 : http://www.brython.info Development site : https://bitbucket.org/olemis/brython/src Downloads : https://bitbucket.org/olemis/brython/downloads Community : https://groups.google.com/forum/?fromgroups=#!forum/brython
[toc] | [next] | [standalone]
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2013-12-27 09:37 -0500 |
| Message-ID | <roy-216684.09373927122013@news.panix.com> |
| In reply to | #62782 |
In article <234a1a8d-e491-4eec-8bd5-7931cf4f74ec@googlegroups.com>, Pierre Quentel <pierre.quentel@gmail.com> 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 : http://www.brython.info > Development site : https://bitbucket.org/olemis/brython/src > Downloads : https://bitbucket.org/olemis/brython/downloads > Community : https://groups.google.com/forum/?fromgroups=#!forum/brython Wow. Just wow.
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-12-27 06:56 -0800 |
| Message-ID | <ebb801e9-903c-471d-ad86-f958e35e2570@googlegroups.com> |
| In reply to | #62782 |
Den fredagen den 27:e december 2013 kl. 07:14:35 UTC+1 skrev Pierre Quentel: > 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 : http://www.brython.info > > Development site : https://bitbucket.org/olemis/brython/src > > Downloads : https://bitbucket.org/olemis/brython/downloads > > Community : https://groups.google.com/forum/?fromgroups=#!forum/brython I am not sure i understand the concept correct it is not serverside, i have to install the libraries on my local computer, and it is accessible via javascript, not on its own in browsers? In the future will it always be a library that has to be downloaded and installed? Could in not be implemented like an activeX plugin as flashplayer, when you come to a Brython side you have a message to download plugin? If i understand correct, now one can implement Brython script in JAVASCRIPT invoked HTML on a server, but it will not work for people surfing the web because the browsers lack support for Brython libraries? Is Brython thought to be a webapplication or can it read/write to files? So what is its future? 1. A standard incorporated and implemented by browsers? 2. A plugin like flashplayer? 3. A standalone library to be downloaded and installed on the local computer to run python scripts one make?
[toc] | [prev] | [next] | [standalone]
| From | Pierre Quentel <pierre.quentel@gmail.com> |
|---|---|
| Date | 2013-12-27 09:54 -0800 |
| Message-ID | <d86d51b1-f79a-4ab9-bfde-dc237fecb83b@googlegroups.com> |
| In reply to | #62800 |
Le vendredi 27 décembre 2013 15:56:33 UTC+1, jonas.t...@gmail.com a écrit : > Den fredagen den 27:e december 2013 kl. 07:14:35 UTC+1 skrev Pierre Quentel: > > > 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 : http://www.brython.info > > > > > > Development site : https://bitbucket.org/olemis/brython/src > > > > > > Downloads : https://bitbucket.org/olemis/brython/downloads > > > > > > Community : https://groups.google.com/forum/?fromgroups=#!forum/brython > > > > I am not sure i understand the concept correct it is not serverside, i have to install the libraries on my local computer, and it is accessible via javascript, not on its own in browsers? > > > > In the future will it always be a library that has to be downloaded and installed? > > > > Could in not be implemented like an activeX plugin as flashplayer, when you come to a Brython side you have a message to download plugin? > > > > If i understand correct, now one can implement Brython script in JAVASCRIPT invoked HTML on a server, but it will not work for people surfing the web because the browsers lack support for Brython libraries? > > > > Is Brython thought to be a webapplication or can it read/write to files? > > So what is its future? > > > > 1. A standard incorporated and implemented by browsers? > > 2. A plugin like flashplayer? > > 3. A standalone library to be downloaded and installed on the local computer to run python scripts one make? Brython is made for client-side web programming, ie programs executing in a web browser. To be able to use it, all there is to do is upload the Brython distribution on the same server as the HTML pages Since it is written in standard Javascript, it is designed to be cross-browser ; it is tested on Chrome and Firefox, and is known to work with a few limitations on IE10
[toc] | [prev] | [next] | [standalone]
| From | Johannes Schneider <johannes.schneider@galileo-press.de> |
|---|---|
| Date | 2013-12-27 17:12 +0100 |
| Message-ID | <mailman.4670.1388161804.18130.python-list@python.org> |
| In reply to | #62782 |
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 : http://www.brython.info > Development site : https://bitbucket.org/olemis/brython/src > Downloads : https://bitbucket.org/olemis/brython/downloads > Community : https://groups.google.com/forum/?fromgroups=#!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? bg, Johannes -- Johannes Schneider Webentwicklung johannes.schneider@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) http://www.galileo-press.de/ Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker HRB 8363 Amtsgericht Bonn
[toc] | [prev] | [next] | [standalone]
| From | Pierre Quentel <pierre.quentel@gmail.com> |
|---|---|
| Date | 2013-12-27 10:01 -0800 |
| Message-ID | <8d69f6b4-f9d2-485a-bff1-f58d2befed33@googlegroups.com> |
| In reply to | #62808 |
Le vendredi 27 décembre 2013 17:12:09 UTC+1, Johannes Schneider a écrit : > 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 : http://www.brython.info > > > Development site : https://bitbucket.org/olemis/brython/src > > > Downloads : https://bitbucket.org/olemis/brython/downloads > > > Community : https://groups.google.com/forum/?fromgroups=#!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? > > > > bg, > > Johannes > > > > > > > > -- > > Johannes Schneider > > Webentwicklung > > johannes.schneider@galileo-press.de > > Tel.: +49.228.42150.xxx > > > > Galileo Press GmbH > > Rheinwerkallee 4 - 53227 Bonn - Germany > > Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) > > http://www.galileo-press.de/ > > > > Gesch�ftsf�hrer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker > > HRB 8363 Amtsgericht Bonn The documentation maintains a list of Python features that are not supported yet. For most of them, it's just a question of time and work by the development team The only thing that is difficult to implement correctly is generators, since only few Javascript engines support "yield". Brython implementation is not perfect, but for the moment it doesn't break any of the modules in the standard distribution that have been included
[toc] | [prev] | [next] | [standalone]
| From | billy.earney@gmail.com |
|---|---|
| Date | 2013-12-27 11:02 -0800 |
| Message-ID | <16452b42-ef22-4009-bdf5-dfe75c01ef0a@googlegroups.com> |
| In reply to | #62815 |
Awesome.. Wonderful work!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web