I am trying to implement the following logic:
def decorator(func):
def func_wrap(*args, **kwargs):
** parse inputs such that I get a dictionary where the keys are the function signature keywords and the values are the matching values **
** do some preprocess of inputs **
return func(**new_kwargs)
To me it seem like a super useful use case however I couldn't find any reference online for this. any ideas?
thanks