Skip to main content

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

thread_driftwatch-0.3.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thread_driftwatch-0.3.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for thread_driftwatch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e0855f7f9f111cd8378490b17d6adfdb476df6645e2f6f81db4ec0e2b7ae258c
MD5 53b7c85a952c6547cc299a09bfc67d52
BLAKE2b-256 670e9d2fe78443857ef126043d23de73d22b39d0d3fa66defaf9d095e3133230

See more details on using hashes here.

File details

Details for the file thread_driftwatch-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for thread_driftwatch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 038d422223c1358364834bc527a50f1d2a6081ae8c6dbf3ce0989587d28005a8
MD5 c563821b88f864974726bc1d0f17ea8a
BLAKE2b-256 8967ee68df4b8598d0e19885d28f147fbdb523967c548b9211f17319fefe1770

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page