tags:

views:

325

answers:

2
+1  Q: 

Python + FastCGI

I'm looking for recommendations on a library to use for a FastCGI server in Python.

+3  A: 

You mean flup? That's technically a FastCGI server (the client might be, say, Apache -- Apache's a web server but, with mod_fastcgi, acts as a FCGI client, sending requests to FCGI applications that serve them). I suspect you mean the other way 'round (in which case I don't know of any such libraries) simply because people are generally swapping the client and server terminology on FCGI (just like they do, e.g., in X11;-) -- just thought I'd answer, just in case you do have your terminology right.

See here for a case in which even the great Ian Bicking used the FCGI terminology wrong (he was asking for a server, too, but meant a client -- and didn't get any usable suggestions as far as I can see in the thread), which strongly suggest the terminology it borken (but, alas, it's estabilished in standards documents, so I don't think it can easily be flipped!-).

Alex Martelli
hah thanks, maybe i should re-ask after getting my terminology straight.
Mike
I think most responders will be under the same mistake, so best is to also explain what you're trying to do ("I want a Python-coded web server which can use external FCGI scripts" -> "I want a FCGI client", or, "I want to hook Python scripts to a web server which speaks FCGI" -> "I want a FCGI server, but not flup because ..."), that could reduce confusion!
Alex Martelli
+1  A: 

libfcgi for python is simple but has shorter learning curve than the full-featured packages. Allows you to write python fastcgi server, i.e. the web server connects as client to your python script. This is worth trying if you have had trouble getting the other packages to work on windows.

amwinter