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

Moshe Zadka twisted at
Tue Feb 11 06:16:53 EST 2003

On 11 Feb 2003, William Dode <wilk-ml at> 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)

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

No, you wouldn't.
Moshe Zadka --
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