alexcouper / dictdiffer

Python class to calculate the difference between two python dictionaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

Running Tests

$ pip install -r requirements_test.txt $ nosetests

License

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

About

Python class to calculate the difference between two python dictionaries

License:MIT License


Languages

Language:Python 100.0%