Skip to content

v0.1.0

Choose a tag to compare

@mcrotk mcrotk released this 10 Nov 23:15

First release.

  • cached_method: a cache for each instance, created on first use, with keys from the bound arguments.
  • omit= and passthrough= for arguments that shouldn't be in the key, or are returned with the result.
  • rng_omit_cached_method and rng_passthrough_cached_method for 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.copy and copy.deepcopy of instances, with copy_instance for 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.