Skip to content

module file_export

Functions to export Yaralyzer results to various file formats.


function export_json

export_json(yaralyzer: Yaralyzer, output_basepath: Optional[str]) → str

Export YARA scan results to JSON.

Args:

  • yaralyzer (Yaralyzer): The Yaralyzer object containing the results to export.
  • output_basepath (Optional[str]): Base path to write output to. Should have no file extension.

Returns:

  • str: Path data was exported to.

function invoke_rich_export

invoke_rich_export(export_method: Callable, output_file_basepath: str) → str

Announce the export, perform the export, and announce completion.

Args:

  • export_method (Callable): Usually a Rich.console.save_whatever() method
  • output_file_basepath (str): Path to write output to. Should have no file extension.

Returns:

  • str: Path data was exported to.

This file was automatically generated via lazydocs.