{"id":26728,"library":"arthur-client","title":"Arthur Python Client","description":"Python client library for the Arthur AI monitoring platform. Version 1.4.2086, requires Python >=3.12. Actively maintained, weekly releases.","status":"active","version":"1.4.2086","language":"python","source_language":"en","source_url":"https://github.com/arthur-ai/arthur-client-python","tags":["arthur","ai","monitoring","client"],"install":[{"cmd":"pip install arthur-client","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"HTTP client for API calls","package":"requests","optional":false},{"reason":"Data validation","package":"pydantic","optional":false}],"imports":[{"note":"Primary client class","symbol":"ArthurClient","correct":"from arthur.client import ArthurClient"},{"note":"send_trace is a method of MonitoringClient, not a top-level function","wrong":"from arthur import send_trace","symbol":"send_trace","correct":"from arthur.client.monitoring import MonitoringClient"}],"quickstart":{"code":"from arthur.client import ArthurClient\n\nclient = ArthurClient(api_key=os.environ.get('ARTHUR_API_KEY', ''))\n# Example: send a single trace\ntrace = {\n    \"id\": \"trace-001\",\n    \"input\": \"What is the capital of France?\",\n    \"output\": \"Paris\"\n}\nresult = client.send_trace(trace)\nprint(result)","lang":"python","description":"Initialize client and send a trace to Arthur."},"warnings":[{"fix":"Upgrade Python to 3.12+ or pin an older version (e.g., arthur-client<1.0).","message":"Requires Python >=3.12. Projects on Python 3.11 or older will fail to install.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use from arthur.client.monitoring import MonitoringClient; monitoring_client.send_trace(...)","message":"The method 'send_trace' may be deprecated in future versions in favor of 'monitoring.send_trace'. Check changelog.","severity":"deprecated","affected_versions":">=1.4.0"},{"fix":"Set ARTHUR_API_KEY environment variable or pass api_key parameter.","message":"API key must be set via environment variable ARTHUR_API_KEY or passed explicitly. Missing key returns 401 but error message may be misleading.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from arthur.client import ArthurClient'.","cause":"Incorrect import path: using 'arthur' instead of 'arthur.client'.","error":"ImportError: cannot import name 'ArthurClient' from 'arthur'"},{"fix":"Use client = ArthurClient(...); monitoring = client.monitoring; monitoring.send_trace(trace)","cause":"The method send_trace is not directly on the ArthurClient class; it's on a monitoring sub-client.","error":"AttributeError: module 'arthur.client' has no attribute 'send_trace'"},{"fix":"Ensure ARTHUR_API_KEY environment variable is set or pass api_key to ArthurClient.","cause":"Missing or invalid API key.","error":"requests.exceptions.HTTPError: 401 Client Error: Unauthorized"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}