[Twisted-Python] pyprocessing in twisted

Peter Sabaini peter at sabaini.at
Fri Jun 6 13:17:17 EDT 2008


Thanks for the all the suggestions!

/me is going into exploring mode
peter.

On Friday 06 June 2008 18:51:19 L. Daniel Burr wrote:
> Hi Peter,
>
>
> On Fri, 06 Jun 2008 11:37:41 -0500, Peter Sabaini <peter at sabaini.at> wrote:
>
> [snip]
>
> > I'd like to isolate code running in "process B" -- for now this is just a
> > prototype, but later on it could well be code I have not much control
> > over,
> > so I don't want it to interact bad with Twisted. And I want to be able to
> > signal it etc. separately from the Twisted process. PyProcessing seemed
> > like
> > an easy way to do this.
> >
> > peter.
>
> I'd definitely advise sticking with reactor.spawnProcess; using that,
> along with a ProcessProtocol implementation, is going to allow you
> to integrate more smoothly with the rest of your Twisted app.
>
> The catch here is that, depending upon your needs, you may have tp
> write your own ProcessProtocol, specific to your app; if you want
> something that provides more "out-of-box" functionality, I might
> suggest you look at ampoule, https://launchpad.net/ampoule/, which
> gives you a process pool, and handles most of the low-level stuff.
>
> Hope this helps,
>
> L. Daniel Burr
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python






More information about the Twisted-Python mailing list