import requests try: url = "http://localhost:8001/api/lab/kpi" print(f"Requesting {url}...") resp = requests.get(url, timeout=5) print("Status Code:", resp.status_code) print("Response JSON:", resp.json()) except Exception as e: print("Error:", e)