[Twisted-Python] using stdin with twisted

Jean-Paul Calderone exarkun at divmod.com
Thu Aug 17 09:04:24 EDT 2006

On Thu, 17 Aug 2006 03:47:56 -0700, Norman Harman <lists at knoggin.com> wrote:
>I have a program that gets apache log on stdin.  I would like to add a web 
>interface and some RPC stuff to it.
>I imagine something like protocols.basic.LineReceiver is what I want. But I 
>can't figure out what ClientFactory to use or ???
>I can find very little info on doing this.  The stdio package is depreciated 
>and the stdin.py example does not run.

The twisted.internet.stdio package isn't deprecated (or depreciated, which
means something else).  You should use it if you want to talk to stdin in
a Twisted program.

The stdin.py example runs fine for me.  In what way is it broken for you?


More information about the Twisted-Python mailing list