Skip to main content

The official Python SDK for DataScope: The Machine Learning Observability Platform

Project description

DataScope Python SDK (datascope)

The official Python client for DataScope: The Machine Learning Observability Platform.

Connect your local Jupyter Notebooks, CI/CD pipelines, and Python IDEs directly to the DataScope platform.

Installation

pip install datascope-ml

Quick Start (Dashboard Mode)

Push your local dataset to the cloud and automatically open the interactive results dashboard in your browser.

Note: You can generate your free SDK API Key directly from your account on the DataScope Website.

import pandas as pd
import datascope

df = pd.read_csv("my_dataset.csv")

# Initialize client (points to localhost by default, configure for production)
client = datascope.Client(api_key="YOUR_API_KEY")

# Upload & Analyze
client.analyze(
    df, 
    project_name="fraud_detection", 
    target_column="is_fraud",
    prediction_type="classification"
)

Programmatic MLOps Features

The datascope package is a fully-fledged programmatic MLOps tool. You can fetch raw JSON metrics and use them in automated pipelines.

1. Automated Governance (CI/CD Blocking)

Run rigorous checks and raise an Exception if your dataset is deemed REJECTED by the DataScope Governance Engine.

# Will raise RuntimeError if data fails governance
client.assert_ready_for_deployment(df, target_column="is_fraud")

# Or fetch raw results:
results = client.run_governance_checks(df, target_column="is_fraud")
print(results["governance"]["status"])

2. Async Analysis (For Large Datasets)

job_id = client.start_analysis_job(df, target_column="is_fraud")
status = client.get_job_status(job_id)

3. Granular ML Microservices

Use the underlying DataScope engines directly in your notebook:

# 1. Automatic Data Cleaning & Imputation
clean_df = client.clean(df)

# 2. Concept Drift Detection (PSI)
drift_report = client.detect_drift(test_df, train_distributions)

# 3. Exploratory Data Analysis (EDA)
eda_stats = client.get_eda(df)

# 4. Feature Importance (SHAP/Random Forest)
features = client.get_feature_importance(df, target_column="is_fraud")

# 5. Data Dictionary (PII warnings, formats, types)
data_dict = client.get_data_dictionary(df)

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

datascope_ml-2.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datascope_ml-2.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file datascope_ml-2.0.1.tar.gz.

File metadata

  • Download URL: datascope_ml-2.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for datascope_ml-2.0.1.tar.gz
Algorithm Hash digest
SHA256 ed28ea1827adc6a701f01a857865fe99c0c85ff4fae5a5b700b6994c9aa4baf9
MD5 dc29eb4846d2d827082c502102920da7
BLAKE2b-256 98d0d325caba558e8f89152d18a7c3feb606b4d31c7259e7eae63ff73a1870d0

See more details on using hashes here.

File details

Details for the file datascope_ml-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: datascope_ml-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for datascope_ml-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6becca940ed956ed9fa7c729673e8588385f0b0d10fa97af7eae642136fabf9
MD5 fd72fad3a8a29fa3615137084a541106
BLAKE2b-256 2214869dc77952705ccc1a0e646c05bb58b181efca944dbaf44ccf8f8d865618

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