Awesome Open Source
Awesome Open Source

cfgdiff -- diff(1) all your configuration files

Build Status


Ever tried comparing MySQL's my.cnf from a Debian and a Gentoo machine with diff(1) without going crazy?

diff(1) is an awesome tool, you use it (or similar implementations like git diff, svn diff etc) every day when dealing with code. But configuration files aren't code. Indentation often does not matter (yeah, there is diff -w and yeah, people use YAML for configs), order of settings does not matter and comments are just beautiful noise.


cfgdiff will try to parse your configuration files, fetching all the relevant keys and values from them and then pretty-printing them in the original format. These results are then diffed and the diff is shown to you.


cfgdiff currently supports the following formats:

  • INI using Python's ConfigParser library
  • JSON using Python's JSON library
  • YAML if the Python YAML library is installed
  • XML if the Python lxml library is installed

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (51,899
json (1,153
xml (327
yaml (215
config (154
diff (130
ini (23

Find Open Source By Browsing 7,000 Topics Across 59 Categories