[Web-SIG] Asynchronous HTTP server in standard library ?
fawcett at teksavvy.com
Thu Jan 15 10:02:02 EST 2004
Pierre Quentel wrote:
>I downloaded and unzipped this archive and I get this error :
>Traceback (most recent call last):
> File "http_server.py", line 718, in ?
> import monitor
>ImportError: No module named monitor
>I don't have medusa installed on my PC
>Have I forgotten something ?
No -- although it could be argued that I did. I didn't include the
modules required to run http_server's '__main__' code. What's left is
just protocol support; you need to provide your own logic. Keep in mind
that I was only trying to provide a Medusa library sufficient to get
HTTP running (for Quixote, in my case), and I haven't bothered to strip
out excess code (such as the __main__ section that you called).
You'll find one file in the tarball (server.py) that's not of Medusan
origin; that's the Quixote driver. It should provide a good starting
point for anyone who wishes to, say, write a PyWCI connector for Medusa.
(In the spirit of embracing emerging standards, I'll buy a beer for
whoever makes a PyWCI 1.0 Container out of this, or out of the original
Andrew Kuchling maintains a maintenance release of Medusa at
http://www.amk.ca/python/code/medusa . Stripping down Medusa is
certainly an easy task; just start with http_server and follow the
More information about the Web-SIG