Repository navigation
v0.1.0
First release.
cached_method: a cache for each instance, created on first use, with keys from the bound arguments.omit=andpassthrough=for arguments that shouldn't be in the key, or are returned with the result.rng_omit_cached_methodandrng_passthrough_cached_methodfor methods taking a numpy random number generator.- numpy arrays, lists, dicts and sets as arguments, with key converters for other types, including pandas objects.
- Safe
copy.copyandcopy.deepcopyof instances, withcopy_instancefor custom copying. - Function versions of every decorator (
cached_function, ...), and type hints checked with pyright and mypy.
Python 3.11+, cachetools 8+; numpy and pandas are optional extras.