alfred3.util.prefix_keys#

alfred3.util.prefix_keys(d: dict, prefix: str, sep: str = '_') dict[source]#

dict: Returns the input dictionary with prefixed keys.

Examples

>>> a = {"k": "val"}
>>> prefix_keys(d=a, prefix="demo")
{"demo_k": "val"}