1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Source: pyprotocols
Section: python
Priority: optional
Maintainer: Gustavo Noronha Silva <kov@debian.org>
Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Build-Depends: cdbs (>= 0.4.43), debhelper (>= 5.0.37.3), python, python-setuptools (>= 0.6a9-1), python-all-dev, python-support (>= 0.3.4)
XS-Python-Version: >= 2.3
XS-Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyprotocols/trunk/
Standards-Version: 3.7.2
Package: python-protocols
Architecture: any
Depends: ${python:Depends}
XB-Python-Version: ${python:Versions}
Description: Open Protocols and Component Adaptation for Python
Do you hate having to write lots of if-then logic to test what type
something is? Wouldn't it be nice if you could just declare "I want
this object to have this behavior" and magically convert whatever
value you have, to the type you need? PyProtocols lets you do just
that, cleanly, quickly, and robustly -- even with built-in types or
other people's classes.
.
PyProtocols extends the PEP 246 adapt() function with a new
"declaration API" that lets you easily define your own protocols and
adapters, and declare what adapters should be used to adapt what
types, objects, or protocols. In addition to its own Interface type,
PyProtocols can also use Twisted and Zope's Interface types too. (Of
course, since Twisted and Zope interfaces aren't as flexible, only a
subset of the PyProtocols API works with them. Specific limitations
are listed in the documentation.)
.
Homepage: http://peak.telecommunity.com/PyProtocols.html
|