Skip to content

getDocuments

Return documents related to an asset.

getDocuments(node, document_type="all", output="json", filepath=None)

  • node (str)
  • document_type (str, default: “all”)
  • output (str): json (default), df, raw, file
  • filepath (str | None)
  • node: Asset code to fetch documents for.
  • document_type: all, merged, or a specific type name.
  • output: Output format selector.
  • filepath: Output file path used when output="file".
documents = menu.getDocuments("System_01", document_type="all")
documents = menu.getDocuments("System_01", document_type="merged")
documents = menu.getDocuments("System_01", document_type="P&ID")
documents_df = menu.getDocuments("System_01", document_type="merged", output="df")