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

Uploaded Python 3

File details

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

File metadata

  • Download URL: thread_driftwatch-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 9b9066180b6b994d8092bd934f7533f6fe76a821d2c2a12a8d578989b7f4dfa5
MD5 f34447bf8a82e7046ccd6916063f2526
BLAKE2b-256 c3b2eeb6fa0792f765a7b94a64ac74cc9ee87ece726d7b217b0a107cf4069b14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thread_driftwatch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e62456eab5806f821b7d8a1694d02798945b567623e2b6a62be591a6e4a007a7
MD5 b7f600eeafa1b1b3464334202bd55659
BLAKE2b-256 068174c155b2ff5d8d53226b4d07e6473dd75065336b97e4b315b0f62870fe23

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