from typing import Dict
import requests


def load_inventory_json() -> Dict:
    """
    Get rawsec inventory json.

    Returns
    -------
    Dict
        rawsec dict of project
    """
    r = requests.get("https://inventory.raw.pm/api/api.json")
    if r.status_code != 200 or "tools" not in r.json():
        return {}
    return r.json()