DriftWatch Python SDK — semantic drift and model staleness monitor. Part of the Thread Suite.
Project description
DriftWatch Python SDK
pip install thread-driftwatch
from driftwatch import DriftWatch
dw = DriftWatch()
endpoint = dw.create_endpoint("my-model", "https://my-model.com/run")
anchor = dw.create_anchor("tax-law", "What is the VAT rate in Ghana?", "15%", source_url="https://gra.gov.gh")
result = dw.run_check(endpoint["id"], domain="tax-law")
print(result["staleness_score"]) # 1.0 = fully current, 0.0 = fully stale
print(result["drift_detected"]) # True if a previously passing anchor now fails
Part of the Thread Suite.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thread_driftwatch-0.3.0.tar.gz.
File metadata
- Download URL: thread_driftwatch-0.3.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0855f7f9f111cd8378490b17d6adfdb476df6645e2f6f81db4ec0e2b7ae258c
|
|
| MD5 |
53b7c85a952c6547cc299a09bfc67d52
|
|
| BLAKE2b-256 |
670e9d2fe78443857ef126043d23de73d22b39d0d3fa66defaf9d095e3133230
|
File details
Details for the file thread_driftwatch-0.3.0-py3-none-any.whl.
File metadata
- Download URL: thread_driftwatch-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
038d422223c1358364834bc527a50f1d2a6081ae8c6dbf3ce0989587d28005a8
|
|
| MD5 |
c563821b88f864974726bc1d0f17ea8a
|
|
| BLAKE2b-256 |
8967ee68df4b8598d0e19885d28f147fbdb523967c548b9211f17319fefe1770
|