[Twisted-Python] Pynfo (I'm back)

screwtape at froup.com screwtape at froup.com
Tue Oct 29 19:58:10 MST 2002


On Tue, Oct 29, 2002 at 07:16:50PM -0500, Jp Calderone wrote:
> On Wed, Oct 23, 2002 at 10:30:18PM -0500, Maniac - wrote:
> > Dont really know where to broach this but:
> > 
> > I've been looking at the code for pynfo and there's some functionality
> > i'd like to wedge in there i.e. logging to a database (for example) but
> > i'd like to be able to do it without affecting the main code. Is there a
> > reasonable way to create an external plugin that could be inserted at
> > runtime?
> 
>   (I don't know if you've already figured this out or not;  I'm posting
> anyway on the off-chance you haven't and are still interested in using the
> code-base, or someone else has taken an interest in the topic)

<snip>

Have *I* got *news* for *you*.

It just so happens that these last few weeks I've been working on a
module-based bot for twisted.im - and hence, and IRC bot. It's still
rather under development, but what *does* work now is dynamic loading
and unloading of plugins. :)

Current version is here:

	http://members.optusnet.com.au/thristian/twisted-bot.tar.gz

In the very near future, I hope to be changing the plugin API - I want
to be able to pass config information (likely a handle to the config
module) into each plugin, and possibly to send shutdown messages as
well.

Have a look, tell me what you like and don't like, tell me what you
want, and please - feel free to send patches. :)

-- 
 ___________ ____________________________
| Screwtape | Reply-To: munged on Usenet |________ ______ ____ __ _  _   _
|
| I M  R UNNi NG   OU T  Of FR 1DG3    MAGN TS
|




More information about the Twisted-Python mailing list