get_key
get_key(key)
Returns the value of a top-level key from the parsed TOML file. For nested sections, the value is a dict; for scalar keys, it is a string, int, float, or bool depending on the TOML type. Returns None instead of raising an error if the key does not exist.
Parameters
- key : str
- Top-level TOML key to look up.
Returns
- any
- The value associated with
key, orNoneif the key is not present in the file.