Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
ANN: visage (interfaces)
 

Index | Next | Previous | View Flat


james.pye at gmail

Jul 29, 2012, 10:18 PM


Views: 354
Permalink
ANN: visage (interfaces)

Hi,

I just pushed this up to pypi/github, and I hoped to acquire some c.l.py opinions.
It's experimental at this point, and might get scrapped.

visage is a loosely coupled interface registry. weakrefs make it cake to implement.

Basically, zope.interface, but where the interfaces are referenced by an identifier instead of the defining Interface class. Also, ABC registration is performed when the Interface becomes available so that isinstance/issubclass checks can be performed on Implementation instances/classes.

FWICT, pyprotocols allows for something like this, but while introducing many "interesting concepts". (;

Currently, visage has no concept of adaption, but I'm suspecting that it could be built *on top* of the existing foundation.

Personally, I'd prefer to reference interfaces by an identifier. Notably, the idea of having to pull in a dependency in order to perform local tests that have no need for the formal Interface class is reason enough for me to use something like this instead of the existing solutions. Sure, to each their own.?

What's c.l.py's perspective on managing interfaces and implementations?

Fuck it, ship it? =)
--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
ANN: visage (interfaces) james.pye at gmail Jul 29, 2012, 10:18 PM
    Re: ANN: visage (interfaces) james.pye at gmail Jul 29, 2012, 10:32 PM
    Re: ANN: visage (interfaces) wuwei23 at gmail Jul 30, 2012, 6:09 PM
    Re: ANN: visage (interfaces) james.pye at gmail Jul 30, 2012, 6:41 PM
    Re: ANN: visage (interfaces) steve+comp.lang.python at pearwood Jul 30, 2012, 7:09 PM
    Re: ANN: visage (interfaces) james.pye at gmail Jul 30, 2012, 8:10 PM
    Re: ANN: visage (interfaces) james.pye at gmail Aug 12, 2012, 4:07 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.