Mod_python vs. application server like CherryPy?

Paul Boddie paul at boddie.org.uk
Wed Dec 6 17:53:07 EST 2006


Vincent Delporte wrote:
> On 5 Dec 2006 17:05:06 -0800, "fumanchu" <fumanchu at amor.org> wrote:
> >In a nutshell, mod_python gives you
> >access from Python to the Apache API, whereas CherryPy and friends give
> >you their own API.
>
> I didn't know Apache had an API of its own, or that it was even needed
> when writing a web application in Python. What does it provide in
> addition to Python/mod_python?

mod_python provides different layers of APIs, with the lowest levels
being those dealing with things like connections and requests - see the
apache module for details:

http://www.modpython.org/live/current/doc-html/module-apache.html

Other layers involve things like cookies, sessions and Python server
pages, and there are also things like the publisher handler which are
less to do with Apache itself and more to do with Python:

http://www.modpython.org/live/current/doc-html/hand-pub.html

Paul




More information about the Python-list mailing list