CGI for Basic Python Webserver - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Networking (https://python-forum.io/forum-12.html) +--- Thread: CGI for Basic Python Webserver (/thread-2293.html) |
CGI for Basic Python Webserver - Mustafa_ba - Mar-05-2017 Hello guys; I have a simple python webserver but I want to use the CGI script for file download and upload according to client-request .But I couldnt find the any way of adjusting the CGI except using apache2 ,nginx or etc... and I dont wanna use Apache2,nginx or etc.. Is there any way to adjust cgi script to my python webserver with Bash script or with other way ? Can you give me any advice about it ? Thanks... RE: CGI for Basic Python Webserver - wavic - Mar-05-2017 It's built-in: https://docs.python.org/3/library/http.server.html#http.server.CGIHTTPRequestHandler RE: CGI for Basic Python Webserver - Larz60+ - Mar-05-2017 You can use the builtin GUI package, tkinter, if you plan on a more elaborate GUI it can be done in tkinter (see https://python-forum.io/Thread-Show-Installed-Package-detail) but you may find pyQt4 easier to get good results with. There's also wxpython, and PyGTK. |