Re:Python finally offloads some batteries
by throwaway81523 on Friday March 18, 2022 @11:10AM
(#30723291)
Yep, if you want to throw a ghetto GUI onto your python script, easiest way is to run CGIHTTPServer (now renamed in py3), write some 1990's style basic HTML, and point a browser at it. Use for customer facing sites? No. But for your internal status checking script or personal photo tagger, it's low fuss, low dependencies, and completely practical.
Here’s an example for those interested: https://dzone.com/articles/python-simple-http-server-with-cg...