Registry / ai-ml / arthur-client

arthur-client

JSON →
library1.4.2086pypypiunverified

Python client library for the Arthur AI monitoring platform. Version 1.4.2086, requires Python >=3.12. Actively maintained, weekly releases.

pip install arthur-client
INSTALL
IMPORT
SIG · ARTHUR-CLIENT
A
arthur-client
ai-mlpythonv1.4.2086
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ArthurClient
from arthur_client import ArthurClient
from arthur.client import ArthurClient

Initialize client and send a trace to Arthur.

from arthur.client import ArthurClient client = ArthurClient(api_key=os.environ.get('ARTHUR_API_KEY', '')) # Example: send a single trace trace = { "id": "trace-001", "input": "What is the capital of France?", "output": "Paris" } result = client.send_trace(trace) print(result)
Debug
Known issues
breakingRequires Python >=3.12. Projects on Python 3.11 or older will fail to install.
fix
Upgrade Python to 3.12+ or pin an older version (e.g., arthur-client<1.0).
affects: >=1.0.0
deprecatedThe method 'send_trace' may be deprecated in future versions in favor of 'monitoring.send_trace'. Check changelog.
fix
Use from arthur.client.monitoring import MonitoringClient; monitoring_client.send_trace(...)
affects: >=1.4.0
gotchaAPI key must be set via environment variable ARTHUR_API_KEY or passed explicitly. Missing key returns 401 but error message may be misleading.
fix
Set ARTHUR_API_KEY environment variable or pass api_key parameter.
affects: all
Upgrade
Version history
1.4.2086latest on PyPI · released Apr 27, 2026
Audit
Dependencies
requestsrequiredHTTP client for API calls
pydanticrequiredData validation
Agent activity
43 hits · last 30 days
node
38
OpenAI (training)
1
Resources
arthur-client — pip install arthur-client · libregistry