A framework for WebProgramming.

Masthead

Deployment Platforms

Linux and Windows. RPMs available.

Suitability

mod_python can be used to develop fast and small web tools and applications, and as part of larger custom application frameworks. It provides an object publishing mechanism similar to (but much simpler than) Zope, and a very clean mapping from URLs to functions. This makes it especially suitable for building web-accessible libraries using HTTP GET/POST as function call serialization.

Community

See the mod_python mailing list.

ModPython Compatible Web Application Frameworks

ModPython itself:

Web application frameworks that support multiple kinds of deployments including ModPython:

Frameworks designed specifically for ModPython:

Environment Access

mod_python provides a similar API to mod_perl, allowing low-level access to Apache's request handling mechanisms.

Session, Identification and Authentication

mod_python 3.1.3 and later provides support for server-side sessions with memory or dbm-based storage. It also supports session locking. For earlier versions, JonsPythonModules implement session management as well as templating and database pooling. mod_python has a very straightforward and flexible system for basic authentication, allowing access rules to be configured at the module and function level.

Persistence Support

Scripts remain in memory between page loads. The Python interpreter can be configured to run per-site or per-directory, allowing the scope of the persistence to be limited as necessary.

Presentation Support

mod_python provides a php-like built-in templating system called Python Server Pages (PSP), but there are many others that can also be used (Cheetah for example).

InTheirOwnWords

mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI and will have access to advanced features such as ability to retain database connections and other data between hits and access to Apache internals.

Comments

mod_python has been "donated" to the Apache Software Foundation. Here is author Gregory Trubetskoy's official statement as of Thursday, Sept. 12, 2002:

It is my pleasure to announce that Mod_Python has been donated to the Apache Software Foundation, and is now a subproject of the httpd server project (see http://httpd.apache.org/).

I am grateful to ASF for accepting this donation and committing resources to further the support of Mod_Python. I believe that this action will advance the development of Mod_Python, resulting in an ultimately better and more popular tool for Python developers. I also believe it will serve to better position Python as a language of choice for web development, a need that has been expressed by many.

There are no implications to the current Mod_Python users - the license is the same with the sole difference in that the copyright belongs to ASF now.

As a consequense of the donation, the CVS repository is now hosted on cvs.apache.org. Do not use the SourceForge repository anymore, it will soon be removed.

There will also be website and mailing changes, but the details are still being finalized and will be announced when ready.

Regards,

Grisha Trubetskoy

Hosting

Unknown

Tutorials

ModPython (last edited 2009-09-09 23:42:52 by PaulBoddie)

Unable to edit the page? See the FrontPage for instructions.