is presented Project Release Brython 3.10 (Browser Python) with the implementation of the Python 3 programming language for execution on the Web browser side, allowing you to use Python instead of JavaScript to develop scripts for the Web. The project code is written in Python and extends under a BSD license.
By connecting the Brython.js and Brython_stdlib.js , Web -The developer can use Python language to determine the logic of the site on the client side, using Python instead of JavaScript. To turn on the Python code on the page used tag
Python-code execution from blocks
The total performance of most operations in the is close in the Python Scripts Web Pages of Python Scripts. The delay occurs only at the compilation stage, but for its elimination it is possible to download the code previously compiled in the JavaScript, which is used to speed up the download of the standard library (Brython provides toolkit To create JavaScript libraries based on Python modules).
The new release is notable for compatibility with Python 3.10, including support for operators to match the sample (Match / Case). The new version also offers the initial implementation of the abstract syntactic tree (AST, Abstract Syntax Tree) for the Python language, which can later be used to generate JavaScript code from universal AST.