Python + FastCGI [closed]

2019-04-24 01:53发布

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

2条回答
霸刀☆藐视天下
2楼-- · 2019-04-24 02:30

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.

查看更多
forever°为你锁心
3楼-- · 2019-04-24 02:34

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!-).

查看更多
登录 后发表回答