decopatch
Create decorators easily in python.
Decision gist · record as of 2026-08-14
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—if 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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel.
- Maintenance is dormant—last release was in 2022 and the last commit in 2024—but the package is marked Production/Stable and carries no known vulnerabilities, so it is suitable for stable decorator patterns that do not require active development.
License · maintenance · safety
BSD 3-Clause (permissive) — BSD 3-Clause is permissive, allowing commercial and private use with minimal restrictions. You must include a copy of the license and retain copyright notices, but there are no copyleft obligations.
last release 2022-03-01 (1627 days) · last repo commit 2024-06-01 · 25 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,736,077 downloads/mo, #3,606 on PyPI
Alternatives
Verify before relying
pip install decopatch
from decopatch import decorator
@decorator
def my_decorator(func, *args, **kwargs):
return func(*args, **kwargs)
@my_decorator
def my_function():
pass- Whether enum34 and funcsigs are truly needed on modern Python versions (they are typically backports for Python 2.7 and early Python 3).
- Specific decorator patterns or edge cases the package handles beyond standard function wrapping.
What it is and 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—tasks 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.
The 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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—if 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.
Install
decopatch on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—last release was in 2022 and the last commit in 2024—but the package is marked Production/Stable and carries no known vulnerabilities, so it is suitable for stable decorator patterns that do not require active development.
License in practice
BSD 3-Clause is permissive, allowing commercial and private use with minimal restrictions. You must include a copy of the license and retain copyright notices, but there are no copyleft obligations.
Quickstart
pip install decopatch
from decopatch import decorator
@decorator
def my_decorator(func, *args, **kwargs):
return func(*args, **kwargs)
@my_decorator
def my_function():
pass
Verify before relying
- Whether enum34 and funcsigs are truly needed on modern Python versions (they are typically backports for Python 2.7 and early Python 3).
- Specific decorator patterns or edge cases the package handles beyond standard function wrapping.
Package facts
| License | BSD 3-Clause permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesmakefunfuncsigsenum34 |
| Maintenance | Dormant 1,627 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,736,077 / month, #3,606 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: decopatch-1.4.10-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python decorator creation”
- decopatchDecopatch simplifies writing decorators in Python by handling the…
- otel-extensionsProvides helper classes, decorators, and functions to simplify setup…
- singleton-decoratorProvides a decorator that enforces singleton pattern on classes while…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also decorator · makefun · purify · sigtools · tightwrap · wrapt · undecorated · Autologging · django-annoying · backcall