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

Uploaded Python 3

File details

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

File metadata

  • Download URL: thread_driftwatch-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 c8e62e0c04eb45a0de53b74ac8dedb26a12c73819b04294b58ecccd7447c3bba
MD5 7612df60977a0a77680e8256e5dff445
BLAKE2b-256 4b9559a2b8f2eee883f3fda5784b4077dc512e4357ba5948b58f85a7ee18073f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thread_driftwatch-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba727051da06a1a885d686be30ae820e4b73eb82b06f267e0b75c613fe2e9b6c
MD5 ae4d12e4b70e52482b5bb8861a90e345
BLAKE2b-256 bcbe2ff918133363edaedf1b1519094aa4d19551309613d3dccad946e3201bf2

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