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.
Metadata
Release files for thread-driftwatch 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| thread_driftwatch-0.5.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thread_driftwatch-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / thread_driftwatch-0.5.0.tar.gz
| Download URL | thread_driftwatch-0.5.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8726b38532ef2c204646e85acc9f5e815399e2c68ae9f4c6bd12d71826168287
|
|
BLAKE2b-256 checksum How to use checksums |
ce81607a678784e31426fed31b7e175ff08861001028e078385e8ef211dac136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / thread_driftwatch-0.5.0-py3-none-any.whl
| Download URL | thread_driftwatch-0.5.0-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a58f1a22e069880bd177dad9fda91faffb7e02347a96ea04395cd82aebcd38cf
|
|
BLAKE2b-256 checksum How to use checksums |
e8adce4718322c9ce87f7de656fa11e1eab96367bd193daa538f862d36e29f9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|