Pydecor

Latest version: v2.0.1

Safety actively analyzes 629765 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.1.0

-----

1.0.0

-----

Initial release!

* ``before`` decorator - run a callback prior to the decorated function
* ``after`` decorator - run a callback after the decorated function
* ``instead`` decorator - run a callback instead of the decorated function
* ``decorate`` decorator - specify before, after, and/or instead callbacks
all at once
* ``construct_decorator`` function - create a reusable decorator with
before, after, and/or instead callbacks
* ``intercept`` decorator - wrap the decorated function in a try/except,
specifying a function with which to handle the exception and/or another
exception to re-raise
* ``log_call`` decorator - automatically log the decorated functions's
call signature and results

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.