Skip to content

Releases

v0.1.1

Choose a tag to compare

@mcrotk mcrotk released this 10 Nov 23:54

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

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.