vantage6.client.filter.filter_dicts_by_values#

filter_dicts_by_values(dicts, filters)#

Filter a list of dicts on the specified key-value pairs.

Parameters:
  • dicts (list[dict]) – The list of dicts to filter.

  • filters (list[tuple[Any, Any]]) – A list of key-value pairs to filter on.

Returns:

The filtered list of dicts.

Return type:

list[dict]