wuttasync.util

Data Utilities

wuttasync.util.data_diffs(source_data, target_data, fields=None)[source]

Find all (relevant) fields with differing values between the two data records, source and target.

Parameters:
  • source_data – Dict of normalized record from source data.

  • target_data – Dict of normalized record from target data.

  • fields – Optional list of fields to check. If not specified, all fields present in target_data will be checked.

Returns:

Possibly empty list of field names which were found to differ between source and target record.