yacache is yet another python cache. This library allows for caching function results in whatever type they were initially returned. This is meant to be fast, optional, and, most importantly, retain all docstrings unlike some other caching libs.
Simply:
pip install yacacheSimply:
from yacache import cache
@cache
def testFunc( arg1=None ):
'''
Test func
Args:
arg1 (str, None): first argument
Returns:
bool
'''
return isinstance( arg1, str )MIT