12 Ways to Use Function Decorators to Improve Your Python Code
Applying separation of concerns, the easy way.
Python decorators provide a simple way to modify or enhance existing functions. They are often used to add extra steps before or after a function in executed, which can be useful in many scenarios. There are other ways to use them too.