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.2.0.tar.gz (2.5 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.2.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file thread_driftwatch-0.2.0.tar.gz.

File metadata

  • Download URL: thread_driftwatch-0.2.0.tar.gz
  • Upload date:
  • Size: 2.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 03752d6ba8d7859fd511b2147c96fe563a28bb05907455ec1ca246b86136a1e9
MD5 9071a7c0c6f266e04ed50c64ee0320ca
BLAKE2b-256 6c0c691696c004dfd3caf0a785edc0e476573c4b4baef255c31732094dc70d46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thread_driftwatch-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8371813faab492484e6e213d0179bf00e2e9d36afd4338daa390f415b8990285
MD5 926aed2abd6708416de804c1c11698c1
BLAKE2b-256 fefed455de5c6d97f9551df86135092e7860db702007eb901610da2961a3ce79

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