deepequal.py
Comparing nested objects is a classic headache. Picture a tree comparison. Start at the root. Walk the branches. Check the leaves. If every node matches, the structures are identical.
Run the Python Deepequal test next to the implementation for concrete examples.
This utility compares nested objects and arrays for strict structural equality. It is completely dependency-free and relies entirely on the standard library. No external packages required.