In Defense of Taps (was Re: [Twisted-Python] where to begin)
wilk-ml at flibuste.net
Tue Feb 11 06:02:59 EST 2003
Bob Ippolito <bob at redivi.com> writes:
> On Tuesday, Feb 11, 2003, at 01:35 America/New_York, Moshe Zadka wrote:
> > On Tue, 11 Feb 2003, Bob Ippolito <bob at redivi.com> wrote:
> >> taps are to simplify running daemons, you don't need them for
> >> anything.
> >> I don't use them for anything myself.
> > I want to explain why taps are useful: Twisted is a Python
> > framework. However,
> > we want non-Python-literate people to be able to use parts of it
> > (such as
> > the Web server or the SSH server) without having to learn
> > Python. One way
> > would have been to write seperate applications: "runTwistedWeb",
> > etc. etc.,
> > polluting bin. Another way is to use the plugin mechanism to completely
> > divorce flexible configuration via command-line arguments (mktap) from
> > running and choosing a reactor (twistd). While it is completely
> > possible
> > to use twistd with just Python code, naive users will find it easier
> > to create a tap and then run it.
> and naive developers will be confused by the whole thing.. I know it
> took me longer to pick up twisted at first because all of the examples
> were tap based, and not just python code. However, twisted and its
> documentation are a lot farther along these days, so it might be
> different for a new developer now.
So, is there an example of a web server without using tap and twistd
command line ?
I would like to make a web server that could be embed in an .exe with
py2exe. Like i do now with a litle hack of CGIHTTPServer...
For this i would like also to don't use .rpy script of the file system,
but just do myself the link between uri and my own scripts...
William Dode - http://flibuste.net
More information about the Twisted-Python