turms.utils
clean_dict
def clean_dict(obj, func)
This method scrolls the entire 'obj' to delete every key for which the 'callable' returns
True
Arguments:
obj
: a dictionary or a list of dictionaries to cleanfunc
: a callable that takes a key in argument and return True for each key to delete