Re:Tools I use: argparse builder
by albertzeyer on Friday October 09, 2020 @06:19AM
(#24728480)
I also very much like this idea, as I find writing CUI/GUI code kind of boilerplate, annoying, and often feels like this is sth which could be automated.
In fact, I also implemented a similar idea to automatic GUI generation for my music player: https://github.com/albertz/music-player
I tried to summarize the idea here: https://github.com/albertz/wiki/blob/master/automatic-user-i...
Maybe you have some further good references?
* CUI
* TUI
* Web UI
* REST API
* Config files
* Environment Variables
* GUI
There are pieces of this in various places. There are a number of command line libraries that integrate config files, command line options, and environment variables, including Traitlets (used in Jupyter). The original Enthought Traits did this for GUIs (declare a set of of classes with datatypes, call .configure_traits() on them, and voila, an autogenerated GUI for them. The Django admin interface is very similar for the web. What's needed is to bring this into a single package.