How can I get argument names and their values passed to a method as a dictionary?
I want to specify the optional and required parameters for a GET request as part of
Use a single argument prefixed with **.
**
>>> def foo(**args): ... print(args) ... >>> foo(a=1, b=2) {'a': 1, 'b': 2}