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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datascope_ml-2.0.0.tar.gz.
File metadata
- Download URL: datascope_ml-2.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8814468303a0519e36650e49478c1128ff8d5585a0556967272381ea6592a617
|
|
| MD5 |
e6a3ae1c046ede8275ea053476385957
|
|
| BLAKE2b-256 |
8a1e9df57cba8de10dc5d6ad914e143bb094772fb73601c557a2bd7a461a4c9e
|
File details
Details for the file datascope_ml-2.0.0-py3-none-any.whl.
File metadata
- Download URL: datascope_ml-2.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31973f0c0d542984205dfd360b69af4550926351a41a6afe47bc06f42d7fce73
|
|
| MD5 |
e3a17c7634ca2c419fab65b61cbdad33
|
|
| BLAKE2b-256 |
f3ee842a9352f329caa989f0d54272e2099efc828c197eefc209b6b380adb0cd
|