deepdiff 8.6.1


pip install deepdiff

  Latest version

Released: Sep 03, 2025


Meta
Author: Seperman
Maintainer: Seperman
Requires Python: >=3.9

Classifiers

Intended Audience
  • Developers

Operating System
  • OS Independent

Topic
  • Software Development

Programming Language
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: Implementation :: PyPy

Development Status
  • 5 - Production/Stable

License
  • OSI Approved :: MIT License

DeepDiff v 8.6.1

Downloads Python Versions License Build Status codecov

Modules

  • DeepDiff: Deep Difference of dictionaries, iterables, strings, and ANY other object.
  • DeepSearch: Search for objects within other objects.
  • DeepHash: Hash any object based on their content.
  • Delta: Store the difference of objects and apply them to other objects.
  • Extract: Extract an item from a nested Python object using its path.
  • commandline: Use DeepDiff from commandline.

Tested on Python 3.9+ and PyPy3.

What is new?

Please check the ChangeLog file for the detailed information.

DeepDiff 8-6-1

  • Patched security vulnerability in the Delta class which was vulnerable to class pollution via its constructor, and when combined with a gadget available in DeltaDiff itself, it could lead to Denial of Service and Remote Code Execution (via insecure Pickle deserialization).

DeepDiff 8-6-0

  • Added Colored View thanks to @mauvilsa
  • Added support for applying deltas to NamedTuple thanks to @paulsc
  • Fixed test_delta.py with Python 3.14 thanks to @Romain-Geissler-1A
  • Added python property serialization to json
  • Added ip address serialization
  • Switched to UV from pip
  • Added Claude.md
  • Added uuid hashing thanks to @akshat62
  • Added ignore_uuid_types flag to DeepDiff to avoid type reports when comparing UUID and string.
  • Added comprehensive type hints across the codebase (multiple commits for better type safety)
  • Added support for memoryview serialization
  • Added support for bytes serialization (non-UTF8 compatible)
  • Fixed bug where group_by with numbers would leak type info into group path reports
  • Fixed bug in _get_clean_to_keys_mapping without explicit significant digits
  • Added support for python dict key serialization
  • Enhanced support for IP address serialization with safe module imports
  • Added development tooling improvements (pyright config, .envrc example)
  • Updated documentation and development instructions

DeepDiff 8-5-0

  • Updating deprecated pydantic calls
  • Switching to pyproject.toml
  • Fix for moving nested tables when using iterable_compare_func. by
  • Fix recursion depth limit when hashing numpy.datetime64
  • Moving from legacy setuptools use to pyproject.toml

DeepDiff 8-4-2

  • fixes the type hints for the base
  • fixes summarize so if json dumps fails, we can still get a repr of the results
  • adds ipaddress support

Installation

Install from PyPi:

pip install deepdiff

If you want to use DeepDiff from commandline:

pip install "deepdiff[cli]"

If you want to improve the performance of DeepDiff with certain functionalities such as improved json serialization:

pip install "deepdiff[optimize]"

Install optional packages:

Documentation

https://zepworks.com/deepdiff/current/

A message from Sep, the creator of DeepDiff

๐Ÿ‘‹ Hi there,

Thank you for using DeepDiff! As an engineer, I understand the frustration of wrestling with unruly data in pipelines. That's why I developed a new tool - Qluster to empower non-engineers to control and resolve data issues at scale autonomously and stop bugging the engineers! ๐Ÿ› ๏ธ

If you are going through this pain now, I would love to give you early access to Qluster and get your feedback.

ChangeLog

Please take a look at the CHANGELOG file.

Survey

:mega: Please fill out our fast 5-question survey so that we can learn how & why you use DeepDiff, and what improvements we should make. Thank you! :dancers:

Local dev

  1. Clone the repo

  2. Switch to the dev branch

  3. Create your own branch

  4. Install dependencies

    • Method 1: Use uv to install the dependencies: uv sync --all-extras.
    • Method 2: Use pip: pip install -e ".[cli,coverage,dev,docs,static,test]"
  5. Build flit build

Contribute

  1. Please make your PR against the dev branch
  2. Please make sure that your PR has tests. Since DeepDiff is used in many sensitive data driven projects, we strive to maintain around 100% test coverage on the code.

Please run pytest --cov=deepdiff --runslow to see the coverage report. Note that the --runslow flag will run some slow tests too. In most cases you only want to run the fast tests which so you wont add the --runslow flag.

Or to see a more user friendly version, please run: pytest --cov=deepdiff --cov-report term-missing --runslow.

Thank you!

Authors

Please take a look at the AUTHORS file.

8.6.1 Sep 03, 2025
8.6.0 Aug 08, 2025
8.5.0 May 09, 2025
8.4.2 Mar 17, 2025
8.4.1 Mar 17, 2025
8.4.0 Mar 16, 2025
8.3.0 Mar 06, 2025
8.2.0 Feb 04, 2025
8.1.1 Dec 16, 2024
8.1.0 Dec 16, 2024
8.0.1 Aug 28, 2024
8.0.0 Aug 27, 2024
7.0.1 Apr 08, 2024
7.0.0 Apr 08, 2024
6.7.1 Nov 14, 2023
6.7.0 Nov 08, 2023
6.6.1 Oct 17, 2023
6.6.0 Oct 04, 2023
6.5.0 Sep 12, 2023
6.4.1 Sep 01, 2023
6.4.0 Sep 01, 2023
6.3.1 Jul 06, 2023
6.3.0 Mar 17, 2023
6.2.3 Jan 06, 2023
6.2.2 Dec 11, 2022
6.2.1 Oct 18, 2022
5.8.1 May 13, 2022
5.8.0 Apr 10, 2022
5.7.0 Dec 17, 2021
5.6.0 Oct 13, 2021
5.5.0 Apr 29, 2021
5.3.0 Apr 16, 2021
5.2.3 Feb 16, 2021
5.2.2 Jan 15, 2021
5.2.1 Jan 01, 2021
5.2.0 Jan 01, 2021
5.0.2 Jul 24, 2020
5.0.1 Jul 01, 2020
5.0.0 Jun 23, 2020
4.3.2 Mar 19, 2020
4.3.1 Mar 11, 2020
4.3.0 Mar 10, 2020
4.2.0 Jan 30, 2020
4.0.9 Nov 08, 2019
4.0.8 Oct 18, 2019
4.0.7 Jul 12, 2019
4.0.6 Apr 13, 2019
4.0.5 Apr 07, 2019
4.0.4 Apr 05, 2019
4.0.2 Mar 24, 2019
3.3.0 Jun 30, 2017
3.2.1 May 29, 2017
3.2.0 Apr 12, 2017
3.1.2 Mar 10, 2017
3.1.1 Mar 04, 2017
3.1.0 Jan 31, 2017
3.0.0 Jan 27, 2017
2.5.3 Dec 05, 2016
2.5.2 Dec 05, 2016
2.5.1 Aug 18, 2016
2.5.0 Aug 18, 2016
2.1.2 Aug 09, 2016
2.1.1 Aug 08, 2016
2.1.0 Aug 08, 2016
2.0.0 Aug 07, 2016
1.8.0 Aug 06, 2016
1.7.0 Aug 03, 2016
1.6.0 Jul 31, 2016
1.5.0 Jul 02, 2016
1.2.0 Jun 12, 2016
1.1.0 Mar 27, 2016
1.0.2 Mar 25, 2016
1.0.1 Mar 15, 2016
1.0.0 Feb 27, 2016
0.6.1 Dec 15, 2015
0.6.0 Dec 03, 2015
0.5.9 Nov 03, 2015
0.5.8 Nov 02, 2015
0.5.7 Aug 11, 2015
0.5.5 Jul 26, 2015
0.5.4 Jul 24, 2015
0.5.3 Jul 22, 2015
0.5.2 Jul 20, 2015
0.5.1 Jul 20, 2015
0.5.0 Jul 20, 2015
0.2.0 Feb 25, 2015
0.1.1 Sep 27, 2014
0.1 Sep 27, 2014

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
orderly-set (<6,>=5.4.1)