deepdiff
deepdiff copied to clipboard
DeepDiff: Deep Difference and search of any Python object/data. DeepHash: Hash of any object based on its contents. Delta: Use deltas to reconstruct objects by adding deltas together.
EX: a = [1,2,3, {'c1':1,'b':'2','a':'3'}] b = [3,4,5,{'a':3,'b':'4','c':'5'}] d_result = DeepDiff(a,b,ignore_order=True,cutoff_distance_for_pairs=1,cutoff_intersection_for_pairs=0.7) pprint(d_result) result is : {'dictionary_item_added': [root[3]['c']], 'dictionary_item_removed': [root[3]['c1']], 'type_changes': {"root[3]['a']": {'new_type': , 'new_value': 3, 'old_type': , 'old_value': '3'}}, 'values_changed':...
@seperman we have been using deep diff with the iterable_compare_func I helped add a little while back and we ran into an issue with nested objects. If you had an...
I do like DeepDiff/DeepHash really! But today I think I found an error: ```python import numpy as np from deepdiff import DeepHash a=np.array(2) DeepHash(a) ``` ``` Traceback (most recent call...
Please checkout the [F.A.Q](https://zepworks.com/deepdiff/current/faq.html) page before creating a bug ticket to make sure it is not already addressed. **Describe the bug** comparing datastructures that contain numbers and datetime.date objects raise...
**Describe the bug** DeepDiff fails with "unsupported operand type(s) for /: 'decimal.Decimal' and 'float'" when input objects have lists with Decimals and ignore_order=True. **To Reproduce** `DeepDiff([Decimal('1.52')], [Decimal('1.57')], ignore_order=True)` **Expected behavior**...
Please checkout the [F.A.Q](https://zepworks.com/deepdiff/current/faq.html) page before creating a bug ticket to make sure it is not already addressed. **Describe the bug** While DeepDiff supports Python 3.6, the new version of...
Hi, sorry if it's not the correct place to post this. But it seems that it's not possible to install the latest version via pip ` ERROR: Could not find...
**Describe the bug** failed hashing dictionaries which contains 'unprocessed' as a key or a value. DeepHash which gets a dictionary contains the word 'unprocessed' failed with {ValueError}not enough values to...
How to correctly mark objects as deleted or added? ```python def iterable_compare_func(x, y, level=None): try: return x["id"] == y["id"] except Exception: raise CannotCompare() from None old_data = [ { "id":...
Please checkout the [F.A.Q](https://zepworks.com/deepdiff/current/faq.html) page before creating a bug ticket to make sure it is not already addressed. **Describe the bug** I cannot get the compare function to work properly...