BasicTools.Helpers.Cache module

BasicTools.Helpers.Cache.CachedResultDecorator(name=None, path=None)[source]
BasicTools.Helpers.Cache.CheckIntegrity()[source]
BasicTools.Helpers.Cache.GetFunctionWithCache(function, name=None, path=None)[source]

Helper function to conserve the output of a funciton for later invocation with the same arguments. The function must be a pure function (ie. the function must not rely on any persisten or internal state). The user can use a dummy argument to force the function to be calculated. All the argument used must support the == operator and a sha256 or pickle

BasicTools.Helpers.Cache.HashFunction(v)[source]