News for hackers. Stuff that matters.
Re:Python finally offloads some batteries by postpawl on Friday March 18, 2022 @01:07AM (#30718918)
Interesting, I’ve never seen the cgi module used before. It’s good to know it exists.

Here’s an example for those interested: https://dzone.com/articles/python-simple-http-server-with-cg...

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.