Re:Introducing PyScript (summary of PyCon keynote)
by codedokode on Thursday June 23, 2022 @04:00AM
(#31846270)
No. People won't write C extensions. They will write something heavy like Redux (which recreates full object graph on every event) in Python.
[ Parent
| on HN ]
Re:Introducing PyScript (summary of PyCon keynote)
by ivoflipse on Thursday June 23, 2022 @01:17PM
(#31852234)
You'll like what we've done during my Hackathon
https://github.com/fork-tongue/collagraph/pull/66
We added support for PyScript using Collagraph, which allows you to define single file components with a Vue-like syntax.
Excerpt from the project README:
Write your Python interfaces in a declarative manner with plain render functions, component classes or even single-file components using Vue-like syntax, but with Python!
- Reactivity (made possible by leveraging observ)
- Function components
- Class components with local state and life-cycle methods/hooks
-Single-file components with Vue-like syntax (.cgx files)
- Custom renderers (PySide, pygfx and now PyScript)