vantage6.client.filter.filter_keys_from_result¶
- filter_keys_from_result(func)¶
Wrapper to filter key-value pairs from a dict.
Removes key-value pair based on the key from a dict. If the key is not present in the dict it is ignored.
- Parameters:
func (callable) – The function that returns a dict.
- Returns:
The function that returns a dict, with only the specified keys kept.
- Return type:
callable