Mod wsgi
Template:Lowercase and underscore mod_wsgi is an Apache HTTP Server module that provides a WSGI compliant interface for hosting Python 2.3+ based web applications under Apache.
mod_wsgi is great for python hosting
Easy installation and upgrade of WSGI applications
If your web hoster has prepared Apache with mod_wsgi and enabled it for your webspace, installing a WSGI app can be as easy as dropping a single myapp.wsgi file into your web space.
Upgrading the WSGI app code can be as easy as uploading new code (touching that myapp.wsgi file).
Finally, installing Python web applications can be as easy as with PHP!
Automatic process management in daemon mode
mod_wsgi not only offers running the wsgi application in some embedded mode (similar to what Mod_python does), but additionally offers a daemon mode (which is strongly recommended for python hosting due to separation and security reasons).
mod_wsgi does a good job managing those daemon processes, they...
- will be started automatically by apache/mod_wsgi (no need for additional init scripts)
- can be started using different uid/gid (good for security and separation)
- can be terminated/restarted after processing a specific amount of requests
- can be terminated after some idle timeout (and will be automatically restarted when a request is received)
- can be automatically restarted when the yourapplication.wsgi file is touched, so it is easy to install new code
- will be killed and restarted in case they become unresponsive