python-wrapt-doc – decorators, wrappers and monkey patching. - doc

The aim of the wrapt module is to provide a transparent object proxy for Python, which can be used as the basis for the construction of function wrappers and decorator functions.

The wrapt module focuses very much on correctness. It therefore goes way beyond existing mechanisms such as functools.wraps() to ensure that decorators preserve introspectability, signatures, type checking abilities etc. The decorators that can be constructed using this module will work in far more scenarios than typical decorators and provide more predictable and consistent behaviour.

To ensure that the overhead is as minimal as possible, a C extension module is used for performance critical components. An automatic fallback to a pure Python implementation is also provided where a target system does not have a compiler to allow the C extension to be compiled.

This package contains the documentation.

Package availability chart
Distribution Base version Our version Architectures
Debian GNU/Linux 8.0 (jessie) 1.8.0-5 1.9.0-4~nd0~nd80+1 i386, amd64, sparc, armel
Debian GNU/Linux 9.0 (stretch) 1.9.0-2 1.9.0-4~nd0~nd90+1 i386, amd64, sparc, armel
Debian testing (buster) 1.9.0-3 1.9.0-4~nd0~nd100+1 i386, amd64, sparc, armel
Debian unstable (sid) 1.9.0-3 1.9.0-4~nd0~nd+1 i386, amd64, sparc, armel
Ubuntu 14.04 “Trusty Tahr” (trusty)   1.9.0-4~nd0~nd14.04+1 i386, amd64, sparc, armel
Ubuntu 16.04 “Xenial Xerus” (xenial) 1.8.0-5build2 1.9.0-4~nd0~nd16.04+1 i386, amd64, sparc, armel
Ubuntu 16.10 “Yakkety Yak” (yakkety) 1.8.0-5build2 1.9.0-4~nd0~nd16.10+1 i386, amd64, sparc, armel
Ubuntu 17.04 “Zesty Zapus” (zesty) 1.9.0-2 1.9.0-4~nd0~nd17.04+1 i386, amd64, sparc, armel
Ubuntu 17.10 “Artful Aardvark” (artful) 1.9.0-2build2 1.9.0-4~nd0~nd17.04+1+nd17.10+1 i386, amd64, sparc, armel

Comments

blog comments powered by Disqus