Yes. You do it like this:
def method(**kwargs):
print kwargs
keywords = {'keyword1': 'foo', 'keyword2': 'bar'}
method(keyword1='foo', keyword2='bar')
method(**keywords)
Running this in Python confirms these produce identical results:
{'keyword2': 'bar', 'keyword1': 'foo'}
{'keyword2': 'bar', 'keyword1': 'foo'}
Related Contents:
- Use of *args and **kwargs [duplicate]
- What is the purpose and use of **kwargs? [duplicate]
- Proper way to use **kwargs in Python
- Converting Python dict to kwargs?
- Calling a Python function with *args,**kwargs and optional / default arguments
- How to increase/reduce the fontsize of x and y tick labels
- error: Unable to find vcvarsall.bat
- retrieve links from web page using python and BeautifulSoup [closed]
- How to run Conda?
- How to read specific lines from a file (by line number)?
- How to modify a text file?
- NumPy or Pandas: Keeping array type as integer while having a NaN value
- Performant cartesian product (CROSS JOIN) with pandas
- Determine whether integer is between two other integers
- Why can’t I use a list as a dict key in python?
- How to make a class property? [duplicate]
- Negative list index? [duplicate]
- Access an arbitrary element in a dictionary in Python
- Making python/tkinter label widget update?
- Lag when win.blit() background pygame
- “Cloning” row or column vectors
- Get protocol + host name from URL
- Call Python function from MATLAB
- How to perform element-wise multiplication of two lists?
- Passing table name as a parameter in psycopg2
- Problem with multi threaded Python app and socket connections
- How to handle elements inside Shadow DOM from Selenium
- Remove file after Flask serves it
- How to sort objects by multiple keys?
- Python script to copy text to clipboard [duplicate]
- Python Regex escape operator \ in substitutions & raw strings
- How can I show explosion image when collision happens?
- How to limit the heap size?
- os.path.dirname(__file__) returns empty
- How can I take a screenshot/image of a website using Python?
- Understanding time.perf_counter() and time.process_time()
- How to compare a list of lists/sets in python?
- Could not find a version that satisfies the requirement
- How to implement common bash idioms in Python? [closed]
- Why can pandas DataFrames change each other?
- Specify length of Sequence or List with Python typing module
- Changing one dict changes all dicts in a list of dicts [duplicate]
- Override module method where from…import is used
- Using XPath in ElementTree
- How to do waffle charts in python? (square piechart)
- pandas merging based on a timestamp which do not match exactly
- Kivy error (python 2.7) : sdl2 import error
- One line ftp server in python
- How to implement a “back” link on Django Templates?
- How do I INSERT INTO t1 (SELECT * FROM t2) in SQLAlchemy?