plugins.filter.merge packageยถ

Submodulesยถ

plugins.filter.merge.mapping moduleยถ

class plugins.filter.merge.mapping.FilterModuleยถ

Bases: object

filters()ยถ
plugins.filter.merge.mapping.merge_mapping(list1, list2, key_name='source')ยถ

Merge two lists of dicts on a given key. - list1, list2: each must be a List[Dict] - key_name: the field to match on If both lists contain an item with the same key_name value, their dictionaries are merged (fields from list2 overwrite or add to list1).

plugins.filter.merge.with_defaults moduleยถ

class plugins.filter.merge.with_defaults.FilterModuleยถ

Bases: object

Custom merge filter for Infinito.Nexus: merge_with_defaults

filters()ยถ
plugins.filter.merge.with_defaults.merge_with_defaults(defaults, customs)ยถ

Recursively merge two dicts (customs into defaults). For each top-level key in customs, ensure all dict keys from defaults are present (at least empty dict). Customs always take precedence.

Module contentsยถ