

A value of 1 preserves all the functionalities of the diff object. If this value is set to zero, most of the functionality of the diff object is removed and the most memory is released.
#Json compare ignore order free#
default=1Ĭache Purge Level defines what objects in DeepDiff should be deleted to free the memory once the diff object is calculated. Using the cache_size can dramatically improve the diff performance especially for the nested objects at the cost of more memory usage. A cache size of zero means it is disabled. cache_size int >= 0, default=0Ĭache Size Cache size to be used to improve the performance.

Note that it is only used when ignore_order = True. cutoff_intersection_for_pairs 1 >= float >= 0, default=0.7Ĭutoff Intersection For Pairs What is the threshold to calculate pairs of items between 2 iterables.įor example 2 iterables that have nothing in common, do not need their pairs to be calculated. The second item is to be compared to the first one cutoff_distance_for_pairs 1 >= float >= 0, default=0.3Ĭutoff Distance For Pairs What is the threshold to consider 2 items as pairs. This is the first item to be compared to the second item t2 dictionary, list, string or almost any python object that has _dict_ or _slots_ Parameters t1 A dictionary, list, string or any python object that has _dict_ or _slots_ It will recursively look for all the changes. DeepDiff ( t1, t2, cache_purge_level=1, cache_size=0, cache_tuning_sample_size=0, custom_operators=None, cutoff_distance_for_pairs=0.3, cutoff_intersection_for_pairs=0.7, encodings=None, exclude_obj_callback=None, exclude_obj_callback_strict=None, exclude_paths=None, include_paths=None, exclude_regex_paths=None, exclude_types=None, get_deep_distance=False, group_by=None, hasher=None, hashes=None, ignore_encoding_errors=False, ignore_nan_inequality=False, ignore_numeric_type_changes=False, ignore_order=False, ignore_order_func=None, ignore_private_variables=True, ignore_string_case=False, ignore_string_type_changes=False, ignore_type_in_groups=None, ignore_type_subclasses=False, iterable_compare_func=None, log_frequency_in_sec=0, math_epsilon=None, max_diffs=None, max_passes=10000000, number_format_notation='f', number_to_string_func=None, progress_logger=>, report_repetition=False, significant_digits=None, truncate_datetime=None, verbose_level=1, view='text', _original_type=None, _parameters=None, _shared_parameters=None, **kwargs ) ¶ĭeep Difference of dictionaries, iterables, strings and almost any other object. DeepDiff 6.2.0 documentation! DeepDiff ¶ class deepdiff.diff.
