$npx skillfedfor your agent

dict-hash

Python package to hash dictionaries using default hash, md5, sha256 and more.

With conditionsPyPI UtilitiesReleased Nov 202586.9K downloads / moMITSource build

Decision gist · record as of 2026-08-14

sdist only — dict_hash-1.3.7.tar.gz · builds from source
v1.3.7 · released 2025-11-10 · 1 runtime deps: deflate_dict

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires deflate_dict as a compiled runtime dependency, which may require a C compiler or pre-built wheels for your platform.
  • High install friction due to a compiled dependency (deflate_dict).
  • Package is in aging maintenance status with 277 days since last release, though the repository remains active and has been maintained since 2019.

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects.

last release 2025-11-10 (277 days) · last repo commit 2025-11-10 · 27 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 86,870 downloads/mo, #13,831 on PyPI

Verify before relying

pip install dict-hash

from dict_hash import sha256

my_dict = {"key": "value"}
my_hash = sha256(my_dict)
  • Whether deflate_dict wheels are available for all major platforms or if compilation is required during install.
  • Performance characteristics when hashing very large DataFrames or arrays with approximation mode enabled.
  • Compatibility guarantees with Pandas 2.x and NumPy 2.x beyond the stated support claim.
Same gist for agents: .md · .json

What it is and 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—Pandas and Polars DataFrames and Series, NumPy arrays, and Numba objects—making it useful for caching, deduplication, and data versioning workflows.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

dict-hash on PyPI

Before you install

High install friction due to a compiled dependency (deflate_dict). Package is in aging maintenance status with 277 days since last release, though the repository remains active and has been maintained since 2019.

Requires deflate_dict as a compiled runtime dependency, which may require a C compiler or pre-built wheels for your platform.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install dict-hash

from dict_hash import sha256

my_dict = {"key": "value"}
my_hash = sha256(my_dict)

Verify before relying

  • Whether deflate_dict wheels are available for all major platforms or if compilation is required during install.
  • Performance characteristics when hashing very large DataFrames or arrays with approximation mode enabled.
  • Compatibility guarantees with Pandas 2.x and NumPy 2.x beyond the stated support claim.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependencies
1 package
deflate_dict
MaintenanceAging 277 days since the last release
Last repo commit
First released
Downloads86,870 / month, #13,831 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3

Evidence: dict_hash-1.3.7.tar.gz

Tags

Capabilities
hash dictionaries pythondict hashing librarypandas dataframe hashingconsistent hash functionsha256 dictionarynumpy array hashingpolars dataframe hash
Topics
hashingcachingdata-structures

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “hash dictionaries python”

  • dict-hashGenerates consistent hashes for Python dictionaries and supports…
  • immutablesProvides an immutable mapping type backed by a Hash Array Mapped Trie…
  • banalProvides type-checking and data-cleaning utility functions for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also filehash · polars-hash · hashring · dirhash · uhashring · ImageHash · pysha3 · bbhash · safe-pysha3 · poseidon-py