[Twisted-Python] Re: Twisted as subprocess

Andrew Bennetts andrew-twisted at puzzling.org
Wed May 25 02:27:57 EDT 2005


On Wed, May 25, 2005 at 08:10:37AM +0200, Nicola Larosa wrote:
> >> I need to turn reactor.spawnProcess on its head.
> >>
> >> That is, I need to run a Twisted-based program as a subprocess, getting
> >> requests on stdin and giving responses on stdout. How do I hook up the
> >> protocol and the rest?
> 
> > Use twisted.internet.stdio
> 
> Thanks, couldn't rgrep it in the sources to save my life. And there's an
> example too (stdin.py), woohoo!
> 
> BTW, that was fast. :-)

It helped that my answer was so lazy ;)

-Andrew.





More information about the Twisted-Python mailing list