Comparison
decorator vs wrapt
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Decorators for Humans
Actively maintained. Last release 9 days ago, commits in 7 of the last 26 weeks. A safe choice.
$
pip install decoratorModule for decorators, wrappers and monkey patching.
Actively maintained. Last release 4 weeks ago, commits in 17 of the last 26 weeks. A safe choice.
$
pip install wraptIn short
- wrapt is the most used: 474.7M downloads a month, 3.0× more than decorator.
- wrapt also has the best Pythie’s Index (83).
- Safe default for a new project: wrapt.