Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. mod_python is an
Apache HTTP Server module that integrates the Python programming
language into the Apache server. It is intended to replace Common
Gateway Interface (CGI) as a method of executing Python scripts on a web
server. The promised benefits are faster execution speed and maintaining
data over multiple sessions. As for now, the termination of its umbrella
project Apache Quetzalcoatl Project has been decided which implies that
the project is officially dead now. Ordinary CGI execution starts a new
process every time a connection is made to a script on the server. This
works well in low to medium traffic sites, but does not scale well when
used on a high traffic site. There are methods of enhancing the
performance of CGI, such as FastCGI, but it is often easier to use a
specialized module to embed the desired language into the web server
itself. This is exactly what mod_python is designed to do. Since the
process is not terminated after the script execution like CGI,
persistent data can be stored, such as database connections. This may
reduce script execution overhead.