4 ms·
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
by postpawl 5y ago
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-cgi-scripts-enabled https://dzone.com/articles/python-simple-http-server-with-cg...
- throwaway81523 5y agoYep, 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.