class NmapDiff(DictDiffer): (source)
NmapDiff compares two objects of same type to enable the user to check: - what has changed - what has been added - what has been removed - what was kept unchanged NmapDiff inherit from DictDiffer which makes the actual comparison. The different methods from DictDiffer used by NmapDiff are the following: - NmapDiff.changed() - NmapDiff.added() - NmapDiff.removed() - NmapDiff.unchanged() Each of the returns a python set() of key which have changed in the compared objects. To check the different keys that could be returned, refer to the get_dict() method of the objects you which to compare (i.e: libnmap.objects.NmapHost, NmapService,...).
Method | __init__ |
Constructor of NmapDiff: |
Method | __repr__ |
Undocumented |
Instance Variable | object1 |
Undocumented |
Instance Variable | object2 |
Undocumented |
Inherited from DictDiffer
:
Method | added |
Undocumented |
Method | changed |
Undocumented |
Method | removed |
Undocumented |
Method | unchanged |
Undocumented |
Instance Variable | current |
Undocumented |
Instance Variable | intersect |
Undocumented |
Instance Variable | past |
Undocumented |
Instance Variable | set |
Undocumented |
Instance Variable | set |
Undocumented |
libnmap.diff.DictDiffer.__init__
Constructor of NmapDiff: - Checks if the two objects are of the same class - Checks if the objects are "comparable" via a call to id() (dirty) - Inherits from DictDiffer and