Skip to main content

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)

Metadata

Release files for datascope-ml 2.0.1

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

Source distribution (sdist)

Source distribution for datascope-ml 2.0.1
File Size Uploaded Provenance Actions
datascope_ml-2.0.1.tar.gz 4.6 kB Without provenance Details for datascope_ml-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datascope-ml 2.0.1
File Interpreter ABI Platform Actions
datascope_ml-2.0.1-py3-none-any.whl Python 3 none any Details for datascope_ml-2.0.1-py3-none-any.whl

Total release size: 9.7 kB

Release files / datascope_ml-2.0.1.tar.gz

Download URL datascope_ml-2.0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ed28ea1827adc6a701f01a857865fe99c0c85ff4fae5a5b700b6994c9aa4baf9
BLAKE2b-256 checksum
How to use checksums
98d0d325caba558e8f89152d18a7c3feb606b4d31c7259e7eae63ff73a1870d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / datascope_ml-2.0.1-py3-none-any.whl

Download URL datascope_ml-2.0.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6becca940ed956ed9fa7c729673e8588385f0b0d10fa97af7eae642136fabf9
BLAKE2b-256 checksum
How to use checksums
2214869dc77952705ccc1a0e646c05bb58b181efca944dbaf44ccf8f8d865618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for datascope-ml 2.0.1

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.

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