Conditional cache is a wrapper over functools.lru_cache that allows for conditionally caching based on the output of the function.
[](/packages/conditional-cache)
<a href="/packages/conditional-cache"><img src="/api/badges/conditional-cache?period=month" alt="PyPI Stats"></a>