Pyodide vs Brython

1,013 views
Skip to first unread message

Lennart Borgman

unread,
Feb 26, 2021, 8:30:30 AM2/26/21
to brython
I just noticed pyodide (again). Do you know about it? How does this compare to Brython?

Dan Stromberg

unread,
Feb 26, 2021, 11:29:27 AM2/26/21
to bry...@googlegroups.com
On Fri, Feb 26, 2021 at 5:30 AM Lennart Borgman <lennart...@gmail.com> wrote:
I just noticed pyodide (again). Do you know about it? How does this compare to Brython?

--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/bb7dfcaf-fce5-40c1-baae-9507450834e1n%40googlegroups.com.

Pierre Quentel

unread,
Feb 27, 2021, 5:56:55 AM2/27/21
to brython
Dan,

It seems that the page hasn't been updated for some time regarding Brython:
- str.format(), generators have been supported for years now; generally, Brython is now compliant with the Python language specification (currently 3.9.x), with the few limitations related to the browser environment
- most of the stdlib is also supported, except for the modules written in C for which no pure-Python or Javascript equivalent is available (cf. this compatibility table)
- the interface with the DOM is through the browser module (the use of Brython-specific keywords such as "doc" and "window" has been removed #5 years ago)
- the interface with ECMAscript code is through browser.window, not JSObject (again for a few years)

Could you update this information ?
- Pierre

Pierre Quentel

unread,
Feb 27, 2021, 4:12:50 PM2/27/21
to brython
Taking a closer look at the page, it seems that the landscape of Python-in-the-browser projects once was very crowdy, but many of them have disappeared, are officially abandonned, or have been inactive for a very long time. So maybe a refresh of the page would be a good idea - including possible new projects.

Broken links
RapydScript
PythonScript
Pyjamas (link loops on Dan's table)
py2js#1
py2js#3

Unmaintained
pystachio: archive on Google Code
PyvaScript: repositiory on Bitbucket unavailable

PyCow: https://github.com/p2k/PyCow : latest commit 7 Dec 2009
Pyjamas: https://github.com/emk/pyjamas, 5 Jan 2010
PYXC-PJ: https://github.com/andrewschaaf/pyxc-pj, 22 Dec 2010
py2js#2: https://github.com/mattpap/py2js, 28 Feb 2011
Empythoned: https://github.com/replit-archive/empythoned, 29 April 2012
PJs https://github.com/jaredly/pjs, 13 Jul 2013
pyjaco: https://github.com/chrivers/pyjaco, 17 Aug 2013
PythonJS: https://github.com/PythonJS/PythonJS, 11 Sep 2014
pythonium: https://github.com/rcarmo/pythonium, 11 Feb 2015
BulBul: https://github.com/ahmedaliadeel/bulbul, 6 Jun 2015
Rusthon: https://github.com/rusthon/Rusthon, 19 Feb 2016
PyPy.js: https://github.com/pypyjs/pypyjs, 19 Mar 2019 ("Note: Development is sleeping at the moment")
Batavia: https://github.com/beeware/batavia, 31 May 2020 ("This repository has been archived by the owner. It is now read-only.")

Still active
Brython
Skulpt
Transcrypt
jiphy
JavaScripthon
pyodide
Flexx (not really "Python in the browser")
Anvil (uses Skulpt)
micropython
RustPython


Dan Stromberg

unread,
Feb 27, 2021, 6:57:57 PM2/27/21
to bry...@googlegroups.com

I've updated it. If you have a moment to vet the changes that'd be terrific.


Pierre Quentel

unread,
Mar 8, 2021, 2:45:45 AM3/8/21
to brython
Le dimanche 28 février 2021 à 00:57:57 UTC+1, Dan Stromberg a écrit :

I've updated it. If you have a moment to vet the changes that'd be terrific.


Yes, the Brython row is ok now, thank you !
- Pierre

Kiko

unread,
Mar 8, 2021, 3:41:31 AM3/8/21
to bry...@googlegroups.com
Hi,

I would like to highlight that PyOdide is actively developed. What it
is not developed anymore is Iodide [1].

Also, Skulpt supports Python3 (3.7.3 ATM) [2].

Dan, would it be possible to have this comparison as a repo so others
can update it and you can receive help from others?

Thanks.

Kind regards.

[1] https://github.com/iodide-project/iodide
[2] http://skulpt.org/
Reply all
Reply to author
Forward
0 new messages