MCPcopy Index your code
hub / github.com/zappa/Zappa / titlecase_keys

Function titlecase_keys

zappa/utilities.py:867–871  ·  view source on GitHub ↗

Takes a dict with keys of type str and returns a new dict with all keys titlecased.

(d: Dict[str, Any])

Source from the content-addressed store, hash-verified

865
866# https://github.com/Miserlou/Zappa/issues/1188
867def titlecase_keys(d: Dict[str, Any]) -> Dict[str, Any]:
868 """
869 Takes a dict with keys of type str and returns a new dict with all keys titlecased.
870 """
871 return {k.title(): v for k, v in d.items()}
872
873
874# https://github.com/Miserlou/Zappa/issues/1688

Callers 2

test_titlecase_keysMethod · 0.90
create_wsgi_requestFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_titlecase_keysMethod · 0.72