Python binding for xxHash library providing fast non-cryptographic hash algorithms
Overall
score
80%
Evaluation — 80%
↑ 1.03xAgent success when using this tile
A utility for computing file hashes and providing them in different output formats.
Build a utility function that computes the hash of a file and provides the hash in multiple output formats. The function should:
def compute_hash_formats(file_path: str) -> dict:
"""
Computes a 64-bit hash of the file and returns it in multiple formats.
Args:
file_path: Path to the file to hash
Returns:
Dictionary with keys 'bytes', 'hex', and 'int' containing the hash in each format
Raises:
FileNotFoundError: If the file does not exist
"""@generates
Provides fast non-cryptographic hash algorithms with support for multiple output formats.
@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