{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/11"}],"enrichment":{"capability":"Generates consistent hashes for Python dictionaries and supports hashing Pandas, Polars, Numba, and NumPy objects using default hash or cryptographic algorithms like SHA256.","skillfed_tags":["hashing","caching","data-structures"],"use_cases":["Create cache keys from function arguments containing dictionaries or DataFrames to enable memoization.","Generate consistent checksums for Pandas or Polars datasets to detect changes or duplicates.","Hash NumPy arrays as part of experiment tracking or model versioning pipelines.","Implement deduplication logic for complex nested data structures in ETL workflows.","Build content-addressed storage systems where data is identified by its hash digest."],"what_it_does":"dict_hash solves the problem that Python dictionaries cannot be hashed natively because they are mutable. This library provides two main functions: dict_hash for session-based hashing using Python's native hash function, and sha256 (plus other cryptographic algorithms) for consistent, reproducible hashes. It extends this capability to complex data structures\u2014Pandas and Polars DataFrames and Series, NumPy arrays, and Numba objects\u2014making it useful for caching, deduplication, and data versioning workflows.\n\nThe package handles edge cases like recursive objects (dictionaries containing themselves) and unhashable nested objects through configurable error handling modes (raise, warn, or ignore). It also offers an approximation mode that subsamples large objects for faster, lightweight hashing. Custom objects can implement the Hashable interface to define their own hashing behavior.","worth_installing":"Yes, with conditions. The package is stable and permissively licensed, but the high install friction from its compiled dependency (deflate_dict) and aging maintenance status (277 days since last release) mean you should verify wheel availability for your platform before adopting it. If you need to hash dictionaries or data science objects and can tolerate the dependency, it is a solid choice; otherwise, consider whether a simpler pure-Python alternative suits your use case."},"id":"dict-hash","links":{"html":"https://skillfed.io/packages/dict-hash","md":"https://skillfed.io/packages/dict-hash.md","pypi":"https://pypi.org/project/dict-hash/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-10","license_spdx":null,"license_treatment":"permissive","name":"dict-hash","python_support":"unspecified","summary":"Python package to hash dictionaries using default hash, md5, sha256 and more."},"popularity":{"monthly_downloads":86870,"position":13831,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.7"}
