[Twisted-Python] Custom app using twisted

Duncan McGreggor python at adytumsolutions.com
Sun May 16 17:53:25 EDT 2004


On May 15, 2004, at 1:17 AM, Duncan McGreggor wrote:

> But I am not sure how to get started yet... I want to write something 
> that can be run with twistd. Can anyone offer guidance or suggestions 
> as to the approach? Right now, I am locked on the example here: 
> http://twistedmatrix.com/documents/current/howto/application.html ... 
> Is this what I should be looking at for inspiration? Or another 
> approach all together? I've not come across examples of twisted apps 
> that are a narrow specialization like what I have in mind... the app 
> would be a *kind* of server... that would regularly spawn processes 
> and wait for return data, regularly instantiate python monitoring 
> classes.

In case any other twisted newbies are interested in learning to apply 
twisted in a similar manner, I am sharing a link I found the other day:
http://www.onlamp.com/pub/a/python/2004/02/12/advanced_nio.html?page=3

Though this example doesn't use twisted.application or the plug-in 
method (both of which I am exploring, and will use), it's code has 
given me ideas on how to proceed. It's simplicity and conceptual 
similarity to what I am doing is just what I needed :-)





More information about the Twisted-Python mailing list