Python Forum
Module : http.server - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Module : http.server (/thread-28138.html)



Module : http.server - JohnnyCoffee - Jul-06-2020

Hi guys.
As in the official python website it is recommended not to use the http.server module in a production environment. I need to develop a Web Server for http requests ... What is the correct module to use in a production environment or will I have to walk the stones to develop a web server ?


RE: Module : http.server - bowlofred - Jul-07-2020

Is there a reason you need your web server to run python? How about running python tasks from nginx?


RE: Module : http.server - JohnnyCoffee - Jul-07-2020

(Jul-07-2020, 12:49 AM)bowlofred Wrote: Is there a reason you need your web server to run python? How about running python tasks from nginx?
I see that I will have to develop a web service http type o apache, nginx ... What is the path of the stones?


RE: Module : http.server - ndc85430 - Jul-07-2020

Can you be more specific about what you're doing? The term "web service" is usually synonymous with "HTTP API" (i.e. a web app serving say JSON or XML via its endpoints). If you're doing that you at least need a web framework and as for the server itself, there's Gunicorn. A list of WSGI servers can be found here.