Recursive diff for nested structures
Project description
{Nested: Diff}.py
Recursive diff for nested structures, implementation of Nested-Diff
Status
Alpha, WIP.
Usage
>>> from nested_diff import diff
>>>
>>> a = {'one': 1, 'two': 2, 'three': 3}
>>> b = {'one': 1, 'two': 42}
>>> diff(a, b)
{'D': {'three': {'R': 3}, 'two': {'O': 2, 'N': 42}, 'one': {'U': 1}}}
>>>
>>> diff(a, b, O=False, R=False)
{'D': {'two': {'N': 42}, 'one': {'U': 1}}}
>>>
License
Licensed under the terms of the Apache License, Version 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nested_diff-0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for nested_diff-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5372821d3b007451dfcb2a5f87987f24afc4be4e7c8bc0170127b40e7f7d392d |
|
MD5 | a3eb89be0757950eb9ba8180d6f61044 |
|
BLAKE2b-256 | 9ca63345a31c7c848299eda61ae58eac0c48ed5b1855162b74724fd5969670ca |