Repository navigation
Releases
Releases · mcrotk/mcrotk_cache_utils
v0.1.1
Documentation and metadata only; the code is unchanged from 0.1.0.
- The README shown on PyPI now gives the PyPI install commands (0.1.0's still said the package wasn't on PyPI yet), and has badges for CI, the PyPI version, Python versions and the license.
- Reworded package description.
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.