Helper

class methodcache.helper.WrapperFunction(func)[source]
get_func()[source]

Return given function :return func: “raw” function

get_hash()[source]

Get hash of function :return string: Numeric Hash

get_name()[source]

Return Name of function :return str: Name of given function

class methodcache.helper.WrapperParameters(arguments=(), keyword_arguments={})[source]
get_args()[source]

Return list of given args :return list: args

get_kwargs()[source]

Return list of given kwargs :return list: kwargs

santize_args()[source]

Create a dict from args. Every dict key start with the word “arg” followed by the value index of tuple. The value of this key are hashed :return dict: arguments as dict

santize_kwargs()[source]

Return a dict wich every value are hashed :return dict: kwargs with hashed values

santize_parameters()[source]

Give a common list of args and kwargs. see santize_args and santize_kwargs :return dict: Merged dict of args and kwargs