Python binding for xxHash library providing fast non-cryptographic hash algorithms
Overall
score
80%
Evaluation — 80%
↑ 1.03xAgent success when using this tile
Build a utility that computes hash digests for data provided in different buffer-like formats.
Create a module that exports a single function hash_data which:
The function should handle all buffer-like input types correctly and produce consistent hash values for equivalent data regardless of the input format.
@generates
def hash_data(data):
"""
Compute a 64-bit hash for buffer-like input data.
Args:
data: Input data in bytes, bytearray, array.array, or memoryview format
Returns:
str: Hexadecimal string representation of the hash
Raises:
TypeError: If data is not a supported buffer-like type
"""
passProvides fast non-cryptographic hash functions.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-xxhashdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10