Stream processing in python, especially, in my case, for UIs.
Nearly modern evented asynchrony
Modern python async-style stuff.
tl;dr Use the event loop from tornado or pyzmq. These non-thread IO things are very easy and comparatively well-documented. And they work with the new python 3 async style. You can use them to farm off heavy computation to other threaded nightmare hell farms or whatever, and they work now.
- rx exists for python as rxpy and is tornado compatible. Here is a nice clear example although the particular libraries he uses are not my favourite
- terminado provides a terminal for tornado, for quick and dirty interaction.
Flexx attempts to provide more bells and whistles, including automatic widget generation from python, still using tornado. This feels over-engineered to me, but possibly because I haven’t built anything big enough to need it yet.
Bizarre crossovers of Web GUIs and user interfaces
In this howto, I explain the following concepts:
- How to launch a GUI toolkit in a separate thread, and how to communicate with this thread.
- How to embed a web browser inside the GUI, and how to communicate with this embedded web browser without using sockets. By not using sockets, we don’t have to worry about socket security, and we don’t have to worry about allocating a socket. […] In other words, we will have AJAX-like […] functionality to communicate with Python but without actually having to use AJAX.