inversion_ideas.decorators#

Decorators for functions, methods and classes.

Functions

cache_on_model(func)

Cache the last result of a method within the instance using the model hash.

debug(func)

Add a debug entry into the logger through a decorator.

Classes

CountCalls(func)

Class decorator to count function calls.