hash

numcodecs_observers.hash

This module defines the HashableCodec helper class, which wraps an existing Codec and makes it hashable.

Classes:

HashableCodec

HashableCodec(codec: Codec)

Bases: Codec, CodecCombinatorMixin

Helper class to wrap an existing Codec and make it hashable.

This class overrides the __hash__ and __eq__ methods to use the codec instance's id.

codec instance-attribute

codec: Codec = codec

The wrapped codec.