Brython-3.3.0
The main feature in this release is an important change in the recommended way to install and work with Brython.
A CPython package brython
is now available on the Python Package Index. It can be installed like any other package with pip install brython
. Then, in an empty folder, running python -m brython --install
will install 3 files :
- brython.js : the Brython engine, to include in the HTML page
- brython_stdlib.js : groups all the modules and packages of the part of the Python standard library supported by Brython
- demo.html : a page with a few examples of how to use Brython for client-side development
brython.js includes very often used modules : browser, browser.html, javascript
.
If your application uses modules of the standard distribution, you need to include brython_stdlib.js besides brython.js:
<script type="text/javascript" src="brython.js"></script>
<script type="text/javascript" src="brython_stdlib.js"></script>
The release files have also been simplified : the compressed files only hold the 3 files above, and the Brython site mirror is no longer included, it is almost the same as the Github repository clone.
The complete changelog is included below.
Many thanks to all contributors, and especially to @glyph for starting and orienting the discussion on issue #491