Python decorators are usually created with function, see another related post, but this post also shows an example on how to create decorators with class.
Python aop with decorators