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 module that discovers and reports available hash algorithms in a non-cryptographic hashing library.
Your module should provide the following capabilities:
@generates
def list_algorithms():
"""
Returns a sorted list of all available hash algorithm names.
Returns:
list: Sorted list of algorithm name strings
"""
pass
def count_algorithms():
"""
Returns the count of available hash algorithms.
Returns:
int: Number of available algorithms
"""
pass
def is_algorithm_available(algorithm_name):
"""
Checks if a specific algorithm is available.
Args:
algorithm_name (str): Name of the algorithm to check
Returns:
bool: True if algorithm is available, False otherwise
"""
passlist_algorithms() returns a list containing at least the algorithms: 'xxh32', 'xxh64', 'xxh3_64', 'xxh3_128' @testcount_algorithms() returns an integer value greater than or equal to 4 @testis_algorithm_available('xxh32') returns True @testis_algorithm_available('nonexistent_algo') returns False @testlist_algorithms() is sorted in alphabetical order @testProvides fast non-cryptographic hash functions with multiple algorithm variants.
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