vantage6.client.filter.filter_dicts_from_results#
- filter_dicts_from_results(func)#
Filter a list of dicts.
Based on a key-value pair within the dict. A single key-value pair can be given through the argument filter_ OR a list of key-value pairs can be given through the argument filters. Note that if the key is not present the key is ignored completely.
- Parameters:
func (callable) – The function that returns a list of dicts.
- Returns:
The function that returns a list of dicts, filtered by the specified filters.
- Return type:
callable