In Defense of Taps (was Re: [Twisted-Python] where to begin)

Moshe Zadka twisted at moshez.org
Tue Feb 11 04:16:53 MST 2003


On 11 Feb 2003, William Dode <wilk-ml at flibuste.net> wrote:

> So, is there an example of a web server without using tap and twistd
> command line ?

'''
from twisted.web import server, static
from twisted.internet import reactor

root = static.Data("hello world", "text/plain")
root.putChild('', root)
# root.putChild('name-of-my-script', myScriptResource)
site = server.Site(root)
reactor.listenTCP(10998, root)
reactor.run()
'''

> I would like to make a web server that could be embed in an .exe with
> py2exe.

No, you wouldn't.
 
-- 
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.




More information about the Twisted-Python mailing list