# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-wrapt VERSION= 1.16.0 KEYWORDS= python VARIANTS= v11 v12 SDESC[v11]= Decorators, wrappers and monkey patching (3.11) SDESC[v12]= Decorators, wrappers and monkey patching (3.12) HOMEPAGE= https://github.com/GrahamDumpleton/wrapt CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/ff/21/abdedb4cdf6ff41ebf01a74087740a709e2edb146490e4d9beea054b0b7a DISTFILE[1]= wrapt-1.16.0-py3-none-any.whl:main DF_INDEX= 1 SPKGS[v11]= single SPKGS[v12]= single OPTIONS_AVAILABLE= PY311 PY312 OPTIONS_STANDARD= none VOPTS[v11]= PY311=ON PY312=OFF VOPTS[v12]= PY311=OFF PY312=ON DISTNAME= wrapt-1.16.0.dist-info GENERATED= yes [PY311].USES_ON= python:v11,wheel [PY312].USES_ON= python:v12,wheel [FILE:1911:descriptions/desc.single] wrapt ===== |Actions| |PyPI| 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. Documentation ------------- For further information on the **wrapt** module see: * http://wrapt.readthedocs.org/ Quick Start ----------- To implement your decorator you need to first define a wrapper function. This will be called each time a decorated function is called. The wrapper function needs to take four positional arguments: * wrapped - The wrapped function which in turns needs to be called by your wrapper function. * instance - The object to which the wrapped function was bound when it was called. * args - The list of positional arguments supplied when the decorated function was called. * kwargs - The dictionary of keyword arguments supplied when the decorated function was called. The wrapper function would do whatever it needs to, but would usually in turn call the wrapped function that is passed in via the wrapped argument. The decorator ``@wrapt.decorator`` then needs to be applied to the wrapper function to convert it into a decorator which can in turn be applied to other functions. [FILE:108:distinfo] 6906c4100a8fcbf2fa735f6059214bb13b97f75b1a61777fcf6432121ef12ef1 23362 wrapt-1.16.0-py3-none-any.whl