Python Decorator Templatewithout arguments from functools import wraps def decorate(func): @wraps(func) def wrapper(*args, **kwargs): # some actions before func # ... _r = func(*args, **kwargs) # some actions after func # ......May 13, 2021 · 1 min readywyt738.hashnode.dev