qmetrics.net

DeepDiff

Python deep comparison, search, hash, and delta utilities

DeepDiff screenshot

DeepDiff compares, searches, and hashes nested Python objects deeply. Modules include Delta for reconstructing objects and a optional CLI extra.

Overview

DeepDiff is a Python library for deep difference reporting between arbitrary objects, including dictionaries, iterables, strings, and custom instances. Related modules add DeepSearch for locating nested values, DeepHash for content-based hashing of unhashable structures, Delta for storing and applying diffs, Extract for path-based retrieval, and a command-line interface via an optional extra.

It runs on CPython 3.11+ and PyPy3. Install from PyPI with optional cli or optimize extras for terminal use and faster JSON paths. Recent releases add iterable match keys for list diffing by business keys, distance calculation between objects, and fixes around complex numbers, datetime truncation, and Delta JSON round-trips.

DeepDiff targets testing, data validation, and change tracking, distinct from the separate Qluster product used for recurring file submission workflows. Versioned documentation includes changelog detail for each release.

Key features

  • Deep structural object diffing
  • Nested search within objects
  • Content-based DeepHash
  • Delta apply and reconstruct
  • Path-based Extract helper
  • Optional CLI extra
  • Iterable keyed list comparison
  • Distance calculation between values

Use cases

  • Unit tests asserting complex object changes
  • Tracking nested config or API payload drift
  • Hashing structured data for caches
  • Replaying object updates via Delta
  • Command-line diff inspection

Tags

Similar software

ShellCheck

Static analysis and linting for Bash shell scripts

ShellCheck scans bash and POSIX shell scripts for syntax, semantic, and portability problems. It is available as a CLI tool, editor integration, web paste interface, and CI hook.

★ 40.4k⟳ todayGPL-3.0

Mypy

Optional static type checker for Python

Mypy checks Python programs against PEP 484 type hints before you run them. It supports gradual typing so you can add annotations over time.

★ 20.7k⟳ todayMIT · open core

typescript-eslint

ESLint tooling for linting TypeScript codebases

typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.

★ 16.5k⟳ 2 days agoMIT

React Doctor

CLI static analysis for React code quality

React Doctor scans React projects for correctness, performance, security, accessibility, and maintainability issues. Run it locally, in CI, or as an agent skill.

★ 15.2k⟳ 11 days agoMIT

Ajv

JSON Schema and JSON Type Definition validator for JavaScript

Ajv compiles JSON Schemas into validation functions for Node.js and browsers. It supports multiple JSON Schema drafts and JSON Type Definition (RFC 8927).

★ 14.9k⟳ 7 months agoMIT

Why Did You Render

React and React Native avoidable re-render diagnostics

Welldone Software’s library monkey-patches React in development to log when components render and why. It highlights redundant updates and works with React Native.

★ 12.5k⟳ 1 year agoMIT