mod_python , mod_snake

François Lepoutrre francois.lepoutre at seriatim.com
Thu May 9 12:51:05 EDT 2002


On Windows, only mod_python will run.

Sometimes plain cgi is fast enough!

I run mod_python on win32 here.
Speed is fine (it's really superb on linux).

mod_python/win32 runs nicely in spite of
an annoying little memory leak.

Be aware however that mod_python and
apache are "threaded" on win32.

If you wish to keep python
structures or database handles in cache
for sheer speed, you will need to develop
threadsafe routines.

Sure it it simpler to develop linux-based
mod_python apps. But installing
a threadless python+mod_python
on linux require admin skills.

Alternatives for fast cgi development
on windows include webware and xitami.

In case you want the flexibility and great
programming model of mod_python,
read the pdf at their site.

You should be able to manage with
the mod_python documentation. I did!

A basic example:

#! C:\Python21\python.exe
##########################################
# handler for plain leakage on win2000 server
from mod_python import apache,util

##########################################
def handler(req):

req.content_type="text/plain"
req.send_http_header()
req.write("hello world!)

return apache.OK

Max F. Rotem wrote in message <3cd99770 at news.barak.net.il>...
>Hello All !
>
>The question is : Maybe anyone can suggest Me how
>to use , and with what web server Apache (1.3.x or 2.x) ,
>mod_python or mod_snake.....?
>
>I work on Windows 2000 platform.
>
>Best Regards ,
>Max F. Rotem
>
>





More information about the Python-list mailing list