msticpy/data/drivers/mordor_driver.py
def _fetch_mdr_metadata() -> Dict[str, MordorEntry]:
    """
    Return full metadata for Mordor datasets.

    Returns
    -------
    Dict[str, MordorEntry]:
        Mordor data set metadata keyed by MordorID

    """
    global MITRE_TECHNIQUES, MITRE_TACTICS

    if MITRE_TECHNIQUES is None or MITRE_TACTICS is None:
        MITRE_TECHNIQUES, MITRE_TACTICS = _get_mitre_categories()

    md_metadata: Dict[str, MordorEntry] = {}
    mdr_md_paths = list(get_mdr_data_paths("metadata"))
    for y_file in tqdm(mdr_md_paths, unit=" files", desc="Downloading Mordor metadata"):
        gh_file_content = _get_mdr_file(y_file)
        yaml_doc = yaml.safe_load(gh_file_content)
        doc_id = yaml_doc.get("id")
        md_metadata[doc_id] = MordorEntry(**yaml_doc)
    return md_metadata

    Return full metadata for Mordor datasets.

    Returns
    -------
    Dict[str, MordorEntry]:
        Mordor data set metadata keyed by MordorID

    
Return full metadata for Mordor datasets.
Returns

Dict[str, MordorEntry]:
Mordor data set metadata keyed by MordorID
Return full metadata for Mordor datasets . Returns Dict [ str MordorEntry ] : Mordor data set metadata keyed by MordorID
def _fetch_mdr_metadata() -> Dict[str, MordorEntry]:
    global MITRE_TECHNIQUES, MITRE_TACTICS
    if MITRE_TECHNIQUES is None or MITRE_TACTICS is None:
        MITRE_TECHNIQUES, MITRE_TACTICS = _get_mitre_categories()
    md_metadata: Dict[str, MordorEntry] = {}
    mdr_md_paths = list(get_mdr_data_paths("metadata"))
    for y_file in tqdm(mdr_md_paths, unit=" files", desc="Downloading Mordor metadata"):
        gh_file_content = _get_mdr_file(y_file)
        yaml_doc = yaml.safe_load(gh_file_content)
        doc_id = yaml_doc.get("id")
        md_metadata[doc_id] = MordorEntry(**yaml_doc)
    return md_metadata
def _fetch_mdr_metadata ( ) -> Dict [ str , MordorEntry ] : global MITRE_TECHNIQUES , MITRE_TACTICS if MITRE_TECHNIQUES is None or MITRE_TACTICS is None : MITRE_TECHNIQUES , MITRE_TACTICS = _get_mitre_categories ( ) md_metadata : Dict [ str , MordorEntry ] = { } mdr_md_paths = list ( get_mdr_data_paths ( "metadata" ) ) for y_file in tqdm ( mdr_md_paths , unit = " files" , desc = "Downloading Mordor metadata" ) : gh_file_content = _get_mdr_file ( y_file ) yaml_doc = yaml . safe_load ( gh_file_content ) doc_id = yaml_doc . get ( "id" ) md_metadata [ doc_id ] = MordorEntry ( ** yaml_doc ) return md_metadata
Return full metadata for Mordor datasets.
Return full metadata for Mordor datasets .
"""
    Return full metadata for Mordor datasets.

    Returns
    -------
    Dict[str, MordorEntry]:
        Mordor data set metadata keyed by MordorID

    """