traveler.core.hashing.stable_hash#

traveler.core.hashing.stable_hash(inputs, *args)[source]#

Generates a stable hash for the given inputs.

Parameters:
  • inputs (Hashable or Iterable[Hashable]) – The value(s) to hash.

  • *args (Any) – Additional values to include in the hash.

Returns:

A bytes object representing the stable hash of the inputs.

Return type:

bytes