import requests try: r = requests.get("http://localhost:8000/api/info") print(r.json()) except Exception as e: print(f"Error: {e}")