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 10.0 (buster)

1.10.11-1

1.9.0-4~nd0~nd100+1

i386, amd64, sparc, armel, ppc64el

Debian GNU/Linux 11.0 (bullseye)

1.12.1-4

Debian GNU/Linux 12.0 (bookworm)

1.14.1-2

Debian GNU/Linux 9.0 (stretch)

1.9.0-2

1.9.0-4~nd0~nd90+1

i386, amd64, sparc, armel

Debian testing (trixie)

1.15.0-4

Debian unstable (sid)

1.15.0-4

1.9.0-4~nd0~nd+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 18.04 “Bionic Beaver” (bionic)

1.9.0-3

1.9.0-4~nd0~nd17.04+1+nd17.10+1+nd18.04+1

i386, amd64, sparc, armel

Ubuntu 20.04 “Focal Fossa” (focal)

1.11.2-2build1

Ubuntu 22.04 “Jammy Jellyfish” (jammy)

1.13.3-1build1

Ubuntu 24.04 “Noble Numbat” (noble)

1.15.0-2build3

Comments

blog comments powered by Disqus