Skip to main content

DriftGuard 🛡️

Enterprise-grade real-time ML model drift monitoring.

DriftGuard is a professional Python library designed for MLOps Engineers and Data Scientists to detect Data Drift and Concept Drift in production environments.

Features

  • Statistical Drift Detection: Built-in support for Kolmogorov-Smirnov Test and Population Stability Index (PSI).
  • Extensible: Easy to create custom detectors by inheriting from BaseDetector.
  • Alerting System: Built-in Webhook integration to send real-time alerts to Slack, Microsoft Teams, etc.

Installation

You can install DriftGuard locally:

pip install -e .

Quick Start

import numpy as np
from driftguard.detectors.ks_drift import KSDriftDetector

# 1. Reference Data (e.g. from your Training Set)
reference_data = np.random.normal(0, 1, 1000)

# 2. Initialize and fit the detector
detector = KSDriftDetector(threshold=0.05)
detector.fit(reference_data)

# 3. New Data (e.g. Production Data)
current_data = np.random.normal(1.5, 1.5, 1000)

# 4. Detect Drift
report = detector.detect(current_data)

print(report)
# {0: {'detector': 'Kolmogorov-Smirnov Test', 'drift_detected': True, 'metrics': {'ks_statistic': ..., 'p_value': ...}, 'threshold': 0.05}}

Running Tests

To run the unit tests:

pip install pytest
pytest tests/

Metadata

Release files for driftguard-mehosni 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for driftguard-mehosni 0.1.2
File Size Uploaded Provenance
driftguard_mehosni-0.1.2.tar.gz 7.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for driftguard-mehosni 0.1.2
File Interpreter ABI Platform
driftguard_mehosni-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / driftguard_mehosni-0.1.2.tar.gz

Download URL driftguard_mehosni-0.1.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e09d03712362d1b940056605f8004fe0d67b122d1e9667d82c36573e0f0c0661
BLAKE2b-256 checksum
How to use checksums
a948c3f4bf2ca95f61c4f0fa1e76c95926e8719be5a871b8a912691535f8e8f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / driftguard_mehosni-0.1.2-py3-none-any.whl

Download URL driftguard_mehosni-0.1.2-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e6343e5598f2cb8f2698e2a30fb1ecb2f37de52790ce1ba43cda90a3a6e2fd3
BLAKE2b-256 checksum
How to use checksums
8572477fa375d44bebf2bf1813d2e53456f7ae08011122af3d922aedbe7616ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Security for driftguard-mehosni 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page