{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"}],"enrichment":{"capability":"Decopatch simplifies writing decorators in Python by handling the boilerplate of preserving function signatures and managing decorator arguments, letting you focus on the decorator logic itself.","skillfed_tags":["decorator-utilities","python-2-compatible"],"use_cases":["Writing a logging decorator that wraps functions while preserving their original signatures and metadata.","Creating a retry decorator that can be used with or without arguments (@retry or @retry(max_attempts=3)).","Building a validation decorator that inspects function arguments before execution.","Generating timing or profiling decorators that measure function execution without altering the wrapped function's interface.","Implementing authorization or access-control decorators for web frameworks or APIs."],"what_it_does":"Decopatch is a library that removes the friction from writing Python decorators. Creating decorators typically requires careful handling of function signatures, argument passing, and wrapper metadata\u2014tasks that are repetitive and error-prone. Decopatch provides utilities to generate decorators with minimal boilerplate, automatically preserving the decorated function's signature and handling both parameterized and non-parameterized decorator syntax.\n\nThe package depends on makefun (for signature generation), funcsigs, and enum34 (compatibility backports). It is marked Production/Stable and supports Python 2.7 through 3.9. The codebase is dormant but stable, with no known security vulnerabilities, making it a low-risk choice for projects that need straightforward decorator creation without active maintenance demands.","worth_installing":"Yes, if you write decorators regularly and want to reduce boilerplate. The package is stable, carries no vulnerabilities, and has low install friction. However, be aware that maintenance is dormant\u2014if you need active support or encounter edge cases, you may need to fork or maintain patches yourself. For standard decorator patterns on modern Python, consider whether the built-in functools.wraps and decorator patterns meet your needs first."},"id":"decopatch","links":{"html":"https://skillfed.io/packages/decopatch","md":"https://skillfed.io/packages/decopatch.md","pypi":"https://pypi.org/project/decopatch/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-03-01","license_spdx":null,"license_treatment":"permissive","name":"decopatch","python_support":"unspecified","summary":"Create decorators easily in python."},"popularity":{"monthly_downloads":1736077,"position":3606,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.4.10"}
