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 command-line tool that scans a directory for duplicate files using fast hash-based comparison.
The tool should:
For each group of duplicate files (files with identical content), print:
Duplicates found (hash: <hash_value>):
- <file_path_1>
- <file_path_2>
- <file_path_3>If no duplicates are found, print:
No duplicate files found.@generates
def find_duplicates(directory_path: str) -> dict[str, list[str]]:
"""
Scan a directory for duplicate files.
Args:
directory_path: Path to the directory to scan
Returns:
Dictionary mapping hash values to lists of file paths with that hash
"""
pass
def main():
"""Command-line entry point."""
pass
if __name__ == "__main__":
main()Provides fast non-cryptographic hashing support.
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