Skip to content

keys

Source

Hook for returning the keys of a dict as a list.

Inputs

Name Type Default Required Description
src Union[dict, str, list] True A dict to get the keys from and output the result or a str with separators or list for a key path to the element to get the keys from within the context.
sep str / True For string src's, a separator for key path.

Arguments

Position Argument Type
1 src Union[dict, str, list]

Returns

Optional[list]