Skip to content

Releases: pyscript/pyscript

2024.5.1

07 May 09:48
8ec3381
Compare
Choose a tag to compare

Release notes / changes:

  • Added lazy_py_modules to allow users to lazily import packages within their code, rather than needing to pre-fetch all of them via config packages entry. E.g.:
    from pyscript import lazy_py_modules
    some, module = await lazy_py_modules("some", "module")
    
  • Fixed MicroPython untar and unzip paths
  • Updated MicroPython to its latest with the following improvements:
  • Added back to pyscript namespace the HTML display helper
  • Added a pyscript.config Python dictionary to introspect the current config as provided and resolved by the user, defaulting to an empty dictionary when no config has been provided
  • Added pyscript.WebSocket Pythonic and simplified way to deal with WebSockets in Python
  • Fixed py-editor offline use case
  • Also fixed offline interpreter use case for py and mpy use cases, including the terminal one
  • Improved and updated the User Guide documentation

2024.4.2

24 Apr 15:18
83c2afe
Compare
Choose a tag to compare

PyScript Release

  • fixed MicroPython untar and unzip paths with sub folders: pyscript/polyscript#97
  • updated MicroPython to its 1.22.0-335 latest version: micropython/micropython#14318 (comment)
    • fixed an issue with too much code to handle in MicroPython
    • fixed an Emscripten issue with modules waiting to be loaded
  • fixed an issue with HTML class in MicroPython #2033
  • temporarily removed PyWeb from the stdlib due "too much code" issue (fixed) but also due to the fact it was not possible to test it successfully on MicroPython. This is likely going to be reverted as soon as the work on PyWeb module is completed: #1960

Experimental

  • the polyscript module now exports a lazy_py_modules helper to allow, in the near future, PyScript to also import outside the config one or more packages at runtime: pyscript/polyscript#95 ... feel free to from polyscript import lazy_py_modules and test it before we land it on PyScript too. See the related documentation to better know how to use it
  • still in polyscript there is now an experimental support for WebR: pyscript/polyscript#93 ... feel free to experiment with <script type="webr"></script> in the wild but watch out missing features

2024.4.1

15 Apr 08:57
c653296
Compare
Choose a tag to compare

Release notes / changes:

  • Changed MicroPython I/O handling: pyscript/polyscript#91
  • Improved PyTerminal by hooking AOT into the same MutationObserver already used for other cases: pyscript/polyscript#90
  • The Ruby WASM WASI interpreter is back (still experimental): pyscript/polyscript#89
  • PyEditor now has the PyScript stdlib out of the box: #2010
  • Fixed lazy PyTerminal bootstrap: #2013
  • Released MicroPython terminal with a simplified code.interact() utility: #2017
  • Added terminal.process(code) to pass along Python code to evaluate: #2026
  • PyTerminal links are now automatically converted into URLs: #2027

2024.3.2

26 Mar 11:36
2f3659b
Compare
Choose a tag to compare

PyScript Release Notes

Polyscript

  • updated MicroPython to its latest version: micropython/micropython#13583
  • it is now possible to fully work offline with Polyscript: pyscript/polyscript#85
  • it is now possible to automatically extract .zip and .tar.gz files if the extension matches and the target ends with a /*, as in /* for root or ./dest/path/* for relative paths: pyscript/polyscript#84
  • updated coincident to its latest, allowing main -> worker interaction without needing SharedArrayBuffer (so await is mandatory, but no special headers are needed to consume asynchronous workers utilities): pyscript/polyscript#80

PyScript

  • improved the previously shipped pyscript.fetch utility to satisfy all requirements around it: #2001
  • improved documentation around JS libraries imported directly in PyScript (both Pyodide and MicroPython)
  • added a pyscript.ffi module that exports both create_proxy and to_js, normalized for both Pyodide and MicroPython and converting by default everything as object literal instead of Map: #2005

2024.3.1

15 Mar 11:24
a1268f1
Compare
Choose a tag to compare

2024.2.1

22 Feb 14:13
84f197b
Compare
Choose a tag to compare

Release notes:

  • Removed Ruby support in PolyScript layer due issues with mainstream way to publish the module: pyscript/polyscript#83
  • Improved error reporting line to report correct line with or without our prepended code and standard library: #1975
  • Allowed a sync_main_only flag to workaround missing SharedArrayBuffer cases: #1967
  • Solved utf-8 related issues when our standard library is bootstrapped in non utf-8 aware sites: #1981

2024.1.3

31 Jan 15:14
bcaab0e
Compare
Choose a tag to compare

Release notes:

  • Update to latest polyscript/coincident versions.
  • MicroPython support for PyDOM.

Full Changelog: 2024.1.2...2024.1.3

2024.1.2

29 Jan 11:05
2b411fc
Compare
Choose a tag to compare

Changelog

Full Changelog: 2024.1.1...2024.1.2

2024.1.1

04 Jan 18:21
0f788fa
Compare
Choose a tag to compare

PyScript 2024.1.1 is now in the wild! See the blog post for this release for more details.

Headline new features include:

  • 3rd-party package support for Micropython using mip
  • js_modules are now treated like modules
  • The xterm.js instance used by <script type="py" terminal> is now exposed as the terminal property

Full Changelog: 2023.12.1...2024.1.1

2023.12.1

07 Dec 17:08
6a3e283
Compare
Choose a tag to compare