Metadata-Version: 2.4
Name: thread-driftwatch
Version: 0.5.0
Summary: DriftWatch Python SDK — semantic drift and model staleness monitor. Part of the Thread Suite.
Home-page: https://github.com/eugene001dayne/drift-watch
Author: Eugene Dayne Mawuli
Author-email: bitelance.team@gmail.com
License: Apache-2.0
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.24.0
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# DriftWatch Python SDK

`pip install thread-driftwatch`

```python
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](https://github.com/eugene001dayne).
