Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > plugin / intra process communication system

Thread Tools

plugin / intra process communication system

Florian Ludwig
Posts: n/a

I'm looking for a module/plugin/intra-process-communication/hook system
for python. Maybe someone here could point me to some project I missed
or might have some good ideas if I end up implementing it myself.

Most systems I have found are "one to many" communications but I would
like "many to many", to clarify what I mean an *example* use-case:

Lets say you program a wiki and like to allow different kind of
authentications. So you create two plugins (for example one for
OpenID and one for Shibboleth).

Some time later you feel like reinventing the wheel again and
you program a blog. Again you like to allow different ways of
authentication and you already wrote plugins for exactly the
same for your wiki, right?

With most systems now some trouble begins - the blog software would need
to have the interface/extention-points/however-you-name-it that the wiki
software defined.

The plugins you wrote probably import them from the wiki module directly
which means your blog would depend on the wiki. (?!) So where to put the
interface/[...] definition that is imported by those plugins? Create a
package/module just containing the interface? This really get
troublesome if different people wrote the wiki, the blog and another
third one a plugin.

Also it will probably break if you try to create a program that includes
(imports and uses) the wiki and the blog at the same time.

While looking for existing solutions I came across several different
implementations and approaches with different advantages and
disadvantages. To not list them all, here one representative
implementation: trac's component architecture [0] as its well but still
short documented, shares several concepts with other implementations and
I failed to see how to solve the problem described above with it.

So, what's your solution?

Thanks for reading my long mail!

Really hoping for an constructive discussion,


Version: GnuPG v1.4.9 (GNU/Linux)


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: plugin / intra process communication system Florian Ludwig Python 7 02-17-2010 07:46 PM
Intra-Package References xkenneth Python 1 03-09-2008 11:47 PM
Intra-package References?? (again) Python 1 01-29-2008 03:10 PM
Intra-VLAN filtering to block telnet and ftp Cisco 1 12-30-2004 11:47 AM
intra-module dependencies Joey Tsai Python 0 11-20-2003 12:40 AM