I like the Elm Architecture and am wondering whether there are Python implementations, ideally ones that work with a native GUI toolkit. I was considering building a small Tkinter wrapper, but wanted to check first.
Are there any Python libraries for The Elm Architecture?
Asked by
mondaystatic
Answers
I donโt have a verified Python package name to recommend. If you look around, check whether a project clearly separates model, update, and view, and how it handles commands or other side effects. That should help distinguish a TEA-style library from a GUI toolkit with a different state model.
Reply to this answer
If you end up making your own, Iโd keep the first version tiny: one state value, a message type, an update function, and a view function. Let Tkinter handle rendering and events, then add a consistent way to run effects only if your app needs them.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions