datadiff
DataDiff is a library to provide human-readable diffs of python data structures.
Decision gist · record as of 2026-08-14
Yes, if you need readable diffs for test debugging and don't require active maintenance. The package is stable, has no dependencies, and works for its stated purpose. However, avoid it if you need ongoing support or compatibility assurance with current Python versions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Package is abandoned (last release 1083 days ago, status marked abandoned), so no active maintenance or bug fixes should be expected.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute freely with minimal restrictions.
last release 2023-08-27 (1083 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,179 downloads/mo, #12,957 on PyPI
Alternatives
Verify before relying
pip install datadiff
from datadiff import diff
a = {'foo': 1, 'bar': 2}
b = {'foo': 1, 'bar': 4}
print(diff(a, b))- Whether the package works reliably on modern Python versions given its abandoned status
- Whether there are known compatibility issues with current testing frameworks or data structures
What it is and what it does
DataDiff is a utility library that compares Python data structures and outputs the differences in a unified diff format, similar to what you'd see comparing text files. It recursively diffs dictionaries and sequences, and has special handling for multi-line strings. The library also provides drop-in replacements for test assertions (like `assert_equal`) that display a data diff when the assertion fails, making it easier to spot what actually differs in complex nested structures during test failures.
The package has no runtime dependencies and installs cleanly. However, it has been abandoned with no active maintenance, so it should be considered stable but not actively developed. It was originally designed to support Python 2.6 through Python 3, though current compatibility with recent Python versions is untested.
Use it for
- Debugging test failures by displaying a clear diff of expected vs. actual data structures in assertions
- Comparing complex nested dictionaries or lists to quickly identify which fields or elements changed
- Generating human-readable output when validating API responses or configuration objects in tests
- Inspecting differences in large data structures without manually walking through nested levels
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need readable diffs for test debugging and don't require active maintenance.
The package is stable, has no dependencies, and works for its stated purpose. However, avoid it if you need ongoing support or compatibility assurance with current Python versions.
Install
datadiff on PyPI
Before you install
Low install friction with no runtime dependencies. Package is abandoned (last release 1083 days ago, status marked abandoned), so no active maintenance or bug fixes should be expected.
License in practice
Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute freely with minimal restrictions.
Quickstart
pip install datadiff
from datadiff import diff
a = {'foo': 1, 'bar': 2}
b = {'foo': 1, 'bar': 4}
print(diff(a, b))
Verify before relying
- Whether the package works reliably on modern Python versions given its abandoned status
- Whether there are known compatibility issues with current testing frameworks or data structures
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,083 days since the last release |
| First released | |
| Downloads | 101,179 / month, #12,957 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules |
Evidence: datadiff-2.2.0-py2.py3-none-any.whl
Tags
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 › “python data structure diff”
- datadiffGenerates human-readable diffs of Python data structures (dicts,…
- recursive-diffRecursively compares two Python data structures and reports their…
- pyjsonCompares the similarity between two JSON files and reports structural…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also dictdiffer · xmldiff · munge · recursive-diff · fast-diff-match-patch · deepdiff6 · json-delta · pytest-icdiff · json-diff · csv-diff