DiffResult#

class dscat.diff.DiffResult(dataset, from_v, to_v, tables_added=<factory>, tables_removed=<factory>, added=<factory>, removed=<factory>, changed=<factory>)[source]#

The differences between two versions of a dataset’s dictionary.

dataset#

Dataset id.

Type:

str

from_v#

The older version compared.

Type:

str

to_v#

The newer version compared.

Type:

str

tables_added#

Table names present only in the newer version.

Type:

list of str

tables_removed#

Table names present only in the older version.

Type:

list of str

added#

(table, feature) pairs gained in the newer version.

Type:

list of tuple

removed#

(table, feature) pairs lost in the newer version.

Type:

list of tuple

changed#

(table, feature, what) for features in both versions whose definition or value coding differs; what is "definition", "values", or "definition+values".

Type:

list of tuple