dictdiffer icon indicating copy to clipboard operation
dictdiffer copied to clipboard

Python class to calculate the difference between two python dictionaries

DictDiffer

Python class to take the difference of two python dictionaries:

  • what was added,
  • what was removed,
  • which key-value pairs are the same, and
  • which key-value pairs are changed

Generates only top-level differences and does not recurse.

Originally presented in a [Stack Overflow answer] (http://stackoverflow.com/questions/1165352/fast-comparison-between-two-python-dictionary/1165552#1165552).

License

DictDiffer is licensed as MIT code according to the LICENSE file.