code: def load(path: str) -> "Store":
          
          # load source (decrypting if necessary)
          if _gpg.is_encrypted(path):
              src_bytes = _gpg.decrypt(path)
          else:
              src_bytes = open(path, "rb").read()
          src = src_bytes.decode("utf-8")
  
          # parse database source
          ext = _gpg.unencrypted_ext(path)
          assert ext not in [
              ".yml",
              ".yaml",
          ], "YAML support was removed in version 0.12.0"
          entries = _parse_entries(src)
  
          return Store(path, entries)
docs: Load password store from file.