Python FastCGI module

Andrew Kuchling (amk@magnet.com)
Tue, 18 Jun 1996 11:53:32 -0400 (EDT)

From: Andrew Kuchling <amk@magnet.com>
Message-Id: <199606181553.LAA28006@lemur.magnet.com>
Subject: Python FastCGI module
To: fastcgi-developers@openmarket.com
Date: Tue, 18 Jun 1996 11:53:32 -0400 (EDT)

I've written a first stab at a Python FastCGI module; it seems to work
fine, though I've only lightly tested it.  You can download it from
http://amarok.magnet.com/files/pyweb/fastcgi.python .  Comments or bug
reports are welcomed.


	Andrew Kuchling
	amk@magnet.com


# Skeleton of an fcgi-enabled program

def CGIfunc():
    print 'Content-type: ...   '   
    # etc...

# The following call will automagically call CGIfunc as many times
# as required: once for plain CGI, or repeatedly for FastCGI.
import fastcgi
fastcgi.fastCGI(CGIfunc)