diff_versions#

dscat.diff.diff_versions(cat, dataset, from_v, to_v)[source]#

Compare a dataset’s dictionary between two versions.

Features are matched by (table, name) identity. A feature in both versions counts as changed when its definition or value coding differs after whitespace and case normalisation, so CRLF and spacing noise is not reported.

Parameters:
  • cat (dscat.index.Catalogue) – Open catalogue to read from.

  • dataset (str) – Dataset id.

  • from_v (str) – Older version id.

  • to_v (str) – Newer version id.

Returns:

The added, removed, and changed tables and features.

Return type:

dscat.diff.DiffResult