2024.5.1
版本发布时间: 2024-05-07 17:48:39
pyscript/pyscript最新发布版本:2024.8.2(2024-08-05 22:31:23)
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:
- Fixed issues with "too much Python" code, now without limits
- Added native asyncio support
- Improved Promises related errors
- It's now possible to create
File.new([...])
or deal with any iterable JS reference - It's now possible to top-level
await
the code without the need toawait interpreter.runPythonAsync(...)
- 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