vantage6.client.filter.filter_dict_keys#
- filter_dict_keys(dict_, keys)#
Filter a dict on the specified keys. If no keys are given, the original dict is returned.
- Parameters:
dict (dict) – The dict to filter.
keys (list[str]) – A list of keys to keep in the dictionary
- Returns:
The filtered dict.
- Return type:
dict