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.5.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.5.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thread_driftwatch-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 8726b38532ef2c204646e85acc9f5e815399e2c68ae9f4c6bd12d71826168287
MD5 c78b1d71de53ef7421330059c999ea79
BLAKE2b-256 ce81607a678784e31426fed31b7e175ff08861001028e078385e8ef211dac136

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thread_driftwatch-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a58f1a22e069880bd177dad9fda91faffb7e02347a96ea04395cd82aebcd38cf
MD5 f0e625425dfc8b008ca4924660f8792c
BLAKE2b-256 e8adce4718322c9ce87f7de656fa11e1eab96367bd193daa538f862d36e29f9a

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