Name | deepdiff JSON |
Version |
8.6.1
JSON |
| download |
home_page | None |
Summary | Deep Difference and Search of any Python object/data. Recreate objects by adding adding deltas to each other. |
upload_time | 2025-09-03 19:40:41 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
# DeepDiff v 8.6.1



[](https://github.com/seperman/deepdiff/actions)
[](https://codecov.io/gh/seperman/deepdiff)
## Modules
- [DeepDiff](https://zepworks.com/deepdiff/current/diff.html): Deep Difference of dictionaries, iterables, strings, and ANY other object.
- [DeepSearch](https://zepworks.com/deepdiff/current/dsearch.html): Search for objects within other objects.
- [DeepHash](https://zepworks.com/deepdiff/current/deephash.html): Hash any object based on their content.
- [Delta](https://zepworks.com/deepdiff/current/delta.html): Store the difference of objects and apply them to other objects.
- [Extract](https://zepworks.com/deepdiff/current/extract.html): Extract an item from a nested Python object using its path.
- [commandline](https://zepworks.com/deepdiff/current/commandline.html): Use DeepDiff from commandline.
Tested on Python 3.9+ and PyPy3.
- **[Documentation](https://zepworks.com/deepdiff/8.6.1/)**
## What is new?
Please check the [ChangeLog](CHANGELOG.md) 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:
- [yaml](https://pypi.org/project/PyYAML/)
- [tomli](https://pypi.org/project/tomli/) (python 3.10 and older) and [tomli-w](https://pypi.org/project/tomli-w/) for writing
- [clevercsv](https://pypi.org/project/clevercsv/) for more rubust CSV parsing
- [orjson](https://pypi.org/project/orjson/) for speed and memory optimized parsing
- [pydantic](https://pypi.org/project/pydantic/)
# 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](https://qluster.ai/solution) 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](https://www.qluster.ai/try-qluster) to Qluster and get your feedback.
# ChangeLog
Please take a look at the [CHANGELOG](CHANGELOG.md) file.
# Survey
:mega: **Please fill out our [fast 5-question survey](https://forms.gle/E6qXexcgjoKnSzjB8)** 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`](https://github.com/astral-sh/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](AUTHORS.md) file.
Raw data
{
"_id": null,
"home_page": null,
"name": "deepdiff",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Seperman <sep@zepworks.com>",
"keywords": null,
"author": null,
"author_email": "Seperman <sep@zepworks.com>",
"download_url": "https://files.pythonhosted.org/packages/19/76/36c9aab3d5c19a94091f7c6c6e784efca50d87b124bf026c36e94719f33c/deepdiff-8.6.1.tar.gz",
"platform": null,
"description": "# DeepDiff v 8.6.1\n\n\n\n\n[](https://github.com/seperman/deepdiff/actions)\n[](https://codecov.io/gh/seperman/deepdiff)\n\n## Modules\n\n- [DeepDiff](https://zepworks.com/deepdiff/current/diff.html): Deep Difference of dictionaries, iterables, strings, and ANY other object.\n- [DeepSearch](https://zepworks.com/deepdiff/current/dsearch.html): Search for objects within other objects.\n- [DeepHash](https://zepworks.com/deepdiff/current/deephash.html): Hash any object based on their content.\n- [Delta](https://zepworks.com/deepdiff/current/delta.html): Store the difference of objects and apply them to other objects.\n- [Extract](https://zepworks.com/deepdiff/current/extract.html): Extract an item from a nested Python object using its path.\n- [commandline](https://zepworks.com/deepdiff/current/commandline.html): Use DeepDiff from commandline.\n\nTested on Python 3.9+ and PyPy3.\n\n- **[Documentation](https://zepworks.com/deepdiff/8.6.1/)**\n\n## What is new?\n\nPlease check the [ChangeLog](CHANGELOG.md) file for the detailed information.\n\nDeepDiff 8-6-1\n- 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).\n\nDeepDiff 8-6-0\n\n- Added Colored View thanks to @mauvilsa \n- Added support for applying deltas to NamedTuple thanks to @paulsc \n- Fixed test_delta.py with Python 3.14 thanks to @Romain-Geissler-1A\n- Added python property serialization to json\n- Added ip address serialization\n- Switched to UV from pip\n- Added Claude.md\n- Added uuid hashing thanks to @akshat62\n- Added `ignore_uuid_types` flag to DeepDiff to avoid type reports when comparing UUID and string.\n- Added comprehensive type hints across the codebase (multiple commits for better type safety)\n- Added support for memoryview serialization\n- Added support for bytes serialization (non-UTF8 compatible)\n- Fixed bug where group_by with numbers would leak type info into group path reports\n- Fixed bug in `_get_clean_to_keys_mapping without` explicit significant digits\n- Added support for python dict key serialization\n- Enhanced support for IP address serialization with safe module imports\n- Added development tooling improvements (pyright config, .envrc example)\n- Updated documentation and development instructions\n\n\nDeepDiff 8-5-0\n\n- Updating deprecated pydantic calls\n- Switching to pyproject.toml\n- Fix for moving nested tables when using iterable_compare_func. by \n- Fix recursion depth limit when hashing numpy.datetime64\n- Moving from legacy setuptools use to pyproject.toml\n\n\nDeepDiff 8-4-2\n\n- fixes the type hints for the base\n- fixes summarize so if json dumps fails, we can still get a repr of the results\n- adds ipaddress support\n\n\n## Installation\n\n### Install from PyPi:\n\n`pip install deepdiff`\n\nIf you want to use DeepDiff from commandline:\n\n`pip install \"deepdiff[cli]\"`\n\nIf you want to improve the performance of DeepDiff with certain functionalities such as improved json serialization:\n\n`pip install \"deepdiff[optimize]\"`\n\nInstall optional packages:\n- [yaml](https://pypi.org/project/PyYAML/)\n- [tomli](https://pypi.org/project/tomli/) (python 3.10 and older) and [tomli-w](https://pypi.org/project/tomli-w/) for writing\n- [clevercsv](https://pypi.org/project/clevercsv/) for more rubust CSV parsing\n- [orjson](https://pypi.org/project/orjson/) for speed and memory optimized parsing\n- [pydantic](https://pypi.org/project/pydantic/)\n\n\n# Documentation\n\n<https://zepworks.com/deepdiff/current/>\n\n### A message from Sep, the creator of DeepDiff\n\n> \ud83d\udc4b Hi there,\n>\n> Thank you for using DeepDiff!\n> As an engineer, I understand the frustration of wrestling with **unruly data** in pipelines.\n> That's why I developed a new tool - [Qluster](https://qluster.ai/solution) to empower non-engineers to control and resolve data issues at scale autonomously and **stop bugging the engineers**! \ud83d\udee0\ufe0f\n>\n> If you are going through this pain now, I would love to give you [early access](https://www.qluster.ai/try-qluster) to Qluster and get your feedback.\n\n\n# ChangeLog\n\nPlease take a look at the [CHANGELOG](CHANGELOG.md) file.\n\n# Survey\n\n:mega: **Please fill out our [fast 5-question survey](https://forms.gle/E6qXexcgjoKnSzjB8)** so that we can learn how & why you use DeepDiff, and what improvements we should make. Thank you! :dancers:\n\n# Local dev\n\n1. Clone the repo\n2. Switch to the dev branch\n3. Create your own branch\n4. Install dependencies\n\n - Method 1: Use [`uv`](https://github.com/astral-sh/uv) to install the dependencies: `uv sync --all-extras`.\n - Method 2: Use pip: `pip install -e \".[cli,coverage,dev,docs,static,test]\"`\n5. Build `flit build`\n\n# Contribute\n\n1. Please make your PR against the dev branch\n2. 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.\n\nPlease 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.\n\nOr to see a more user friendly version, please run: `pytest --cov=deepdiff --cov-report term-missing --runslow`.\n\nThank you!\n\n# Authors\n\nPlease take a look at the [AUTHORS](AUTHORS.md) file.\n",
"bugtrack_url": null,
"license": null,
"summary": "Deep Difference and Search of any Python object/data. Recreate objects by adding adding deltas to each other.",
"version": "8.6.1",
"project_urls": {
"Documentation": "https://zepworks.com/deepdiff/",
"Homepage": "https://zepworks.com/deepdiff/",
"Issues": "https://github.com/seperman/deepdiff/issues",
"Repository": "https://github.com/seperman/deepdiff"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f7e6efe534ef0952b531b630780e19cabd416e2032697019d5295defc6ef9bd9",
"md5": "d1c982d1b19faed6eaeb4de2ce244b56",
"sha256": "ee8708a7f7d37fb273a541fa24ad010ed484192cd0c4ffc0fa0ed5e2d4b9e78b"
},
"downloads": -1,
"filename": "deepdiff-8.6.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d1c982d1b19faed6eaeb4de2ce244b56",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 91378,
"upload_time": "2025-09-03T19:40:39",
"upload_time_iso_8601": "2025-09-03T19:40:39.679079Z",
"url": "https://files.pythonhosted.org/packages/f7/e6/efe534ef0952b531b630780e19cabd416e2032697019d5295defc6ef9bd9/deepdiff-8.6.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "197636c9aab3d5c19a94091f7c6c6e784efca50d87b124bf026c36e94719f33c",
"md5": "937d0b8b5bae7b34e08ef26485dced46",
"sha256": "ec56d7a769ca80891b5200ec7bd41eec300ced91ebcc7797b41eb2b3f3ff643a"
},
"downloads": -1,
"filename": "deepdiff-8.6.1.tar.gz",
"has_sig": false,
"md5_digest": "937d0b8b5bae7b34e08ef26485dced46",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 634054,
"upload_time": "2025-09-03T19:40:41",
"upload_time_iso_8601": "2025-09-03T19:40:41.461302Z",
"url": "https://files.pythonhosted.org/packages/19/76/36c9aab3d5c19a94091f7c6c6e784efca50d87b124bf026c36e94719f33c/deepdiff-8.6.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-03 19:40:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "seperman",
"github_project": "deepdiff",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "deepdiff"
}