NiceGUI
Image this: You’ve acquired an current Python app that runs as a command-line software or net service, however you wish to add a web-based UI to it—and quick. You would strive cobbling collectively a entrance finish by yourself, however why reinvent that wheel when NiceGUI has already achieved it for you?
NiceGUI makes use of a declarative syntax to explain what your UI elements seem like and the way they behave. The gallery of prebuilt UI elements contains many frequent widgets—buttons, sliders, textual content labels, enter containers, file uploaders, and so forth. However additionally they embody elements for extra subtle functions, like audio or video, interactive knowledge displays (charts, tables, Matplotlib determine rendering), 3D visualizations utilizing three.js, CodeMirror editors, and rather more. None of those elements require you to write down any in-browser code in any respect; NiceGUI handles all of that.

A easy NiceGUI app, with net widgets created programmatically. The ensuing app could be deployed on a server or as a standalone program.
IDG
Wrapping current code with NiceGUI requires studying just a little about how NiceGUI handles issues like occasion loops and software state. The excellent news is all of these issues are achieved by the use of high-level constructs in NiceGUI itself. As an illustration, the ui.timer
object permits you to shortly outline some code to run on a daily interval, or to name as soon as. ui.clipboard
and app.storage
cope with the browser’s clipboard and native storage mechanisms. And long-running duties could be simply delegated to a subprocess with run.cpu_bound
or to a thread with run.io_bound
.