class_docstr: A dict-like class that stores secrets.
  Parses secrets.toml on-demand. Cannot be externally mutated.
  
  Safe to use from multiple threads.
class_docstr_tok: ["A","dict-like","class","that","stores","secrets",".","Parses","secrets.toml","on-demand",".","Can","not","be","externally","mutated",".","Safe","to","use","from","multiple","threads","."]
docstr: Return the value with the given key. If no such key
  exists, raise an AttributeError.
  
  Thread-safe.
docstr_tok: ["Return","the","value","with","the","given","key",".","If","no","such","key","exists",",","raise","an","AttributeError",".","Thread-safe","."]
code: def __getattr__(self, key: str) -> Any:
      """Return the value with the given key. If no such key
      exists, raise an AttributeError.
  
      Thread-safe.
      """
      try:
          value = self._parse(True)[key]
          if not isinstance(value, Mapping):
              return value
          else:
              return AttrDict(value)
      # We add FileNotFoundError since __getattr__ is expected to only raise
      # AttributeError. Without handling FileNotFoundError, unittests.mocks
      # fails during mock creation on Python3.9
      except (KeyError, FileNotFoundError):
          raise AttributeError(_missing_attr_error_message(key))
  
imports: import os
  import threading
  from copy import deepcopy
  from typing import Any, Dict, ItemsView, Iterator, KeysView, List, Mapping, NoReturn, Optional, ValuesView
  import toml
  from blinker import Signal
  from typing_extensions import Final
  import streamlit
  import streamlit.watcher.path_watcher
  from streamlit import file_util, runtime
  from streamlit.logger import get_logger
label_desc: Use image node_id 9 for calling the Secrets obj's underlying member method code with example usage: obj.__getattr__(key) and returns: value, AttrDict