Skip to content

Latest commit

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Differ

Yet another object comparison tool.

This module provides a way to find differences between simple and complex (nested) objects.

This module do what others do (think of difflib / DeepDiff / ObjDiff), but the way I like, and with some magic.

Usage:

fromdifferimportDifferdiffer=Differ()
diff=differ.compare(object1, object2)
# diff is a Difference instance that can be traversed:

You can also play with inheritance from the Diffing class, that will override the bitwise xor operator ('^') so it will produces differencies:

fromdifferimportDiffingclassMyClass(Diffing):
passa=MyClass()
b=MyClass()
diff=a^b# diff is a Difference instance

About

Differ for complex objects

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages