{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Computes a single hash value for an entire directory based on its files' structure and content, supporting all hashlib algorithms and glob-style filtering.","skillfed_tags":["file-integrity","hashing","verification"],"use_cases":["Verify dataset integrity before training a machine learning model to catch corrupted or missing files early.","Validate that generated output files in a regression test match a known-good directory hash.","Check that a downloaded or synced directory has not been modified or corrupted during transfer.","Exclude temporary or hidden files from a hash to focus on meaningful content changes.","Quickly detect structural changes in a large directory tree without comparing individual files."],"what_it_does":"dirhash is a Python module and command-line tool that generates a single hash value representing the entire contents and structure of a directory. It uses Python's hashlib to support all standard hashing algorithms (MD5, SHA1, SHA256, etc.) and follows the Dirhash Standard for consistent, collision-resistant hashes across different implementations. The tool includes glob-style filtering to include or exclude files by pattern, and optional multiprocessing to parallelize hashing across files for performance gains.\n\nThe primary use case is verifying the integrity of a set of files and their directory structure\u2014useful for validating datasets before expensive computations, regression testing, or ensuring that generated files match expected outputs. It addresses a gap in Python tooling by providing a well-tested, documented, and standardized approach to directory hashing, with a straightforward API for both programmatic and command-line use.","worth_installing":"Yes, if you need to verify directory integrity or detect changes in file structure and content. The low install friction, permissive license, and lack of security vulnerabilities make it safe to adopt. Dormant maintenance is a minor concern but not a blocker for a stable, single-purpose tool. Suitable for one-off verification tasks or as part of a larger testing pipeline."},"id":"dirhash","links":{"html":"https://skillfed.io/packages/dirhash","md":"https://skillfed.io/packages/dirhash.md","pypi":"https://pypi.org/project/dirhash/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-08-03","license_spdx":null,"license_treatment":"permissive","name":"dirhash","python_support":"supports_current","summary":"Python module and CLI for hashing of file system directories."},"popularity":{"monthly_downloads":13319927,"position":1287,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
