diffsync.utils¶
Utility functions for DiffSync library.
- class diffsync.utils.OrderedDefaultDict(dict_type)¶
Bases:
collections.OrderedDictA combination of collections.OrderedDict and collections.DefaultDict behavior.
- __init__(dict_type)¶
Create a new OrderedDefaultDict.
- diffsync.utils.intersection(lst1, lst2) → List¶
Calculate the intersection of two lists, with ordering based on the first list.
- diffsync.utils.symmetric_difference(lst1, lst2) → List¶
Calculate the symmetric difference of two lists.