Skip to main content

Omni Data Refinement — The standard framework for dataset quality, validation, and monitoring.

Project description

OMR — Omni Data Refinement

OMR is a pure Python framework for dataset quality, validation, profiling, monitoring, and reliability.

The goal is to become the standard tool developers use immediately after loading a dataset, similar to how Pandas is used for data manipulation.

OMR is designed to be Pure Python, Open Source, Modular, Extensible, Enterprise-ready, and entirely independent of external AI APIs or LLMs.

Core Vision

Instead of writing dozens of exploratory scripts, you just pass your dataset to OMR.

Current workflow:

import pandas as pd
df = pd.read_csv("data.csv")
# Write 50 lines of .isnull(), .duplicated(), and data exploration code...

Desired workflow:

import pandas as pd
from omr import Dataset

df = pd.read_csv("data.csv")
report = Dataset(df).health()

print(report.score)  # e.g. 87

Capabilities

OMR handles 12 complete domains of data intelligence:

  1. Health Engine: 5-pillar quality score (Completeness, Uniqueness, Consistency, Validity, Conformity).
  2. Cleaning Engine: Auto-resolution of missing values, duplicates, and type mismatches.
  3. Profiling Engine: Deep statistical profile of every column.
  4. Validation Engine: Schema-based validation with typed constraints (PositiveInteger, Email, etc).
  5. Statistical Engine: Outlier detection, multicollinearity, skewness, class imbalance.
  6. Drift Engine: Distribution shift detection using PSI, KS Test, and JS Divergence.
  7. Monitoring System: Continuous tracking and alerting for data decay.
  8. Explainability: Rule-based explanations for data science issues.
  9. Versioning: Snapshots and rollback capabilities for transformations.
  10. Reporting: Export to HTML, Markdown, or JSON.
  11. Pipelines: Fluent, chainable API for applying operations.
  12. Plugin Registry: Extensible via third-party domain-specific packages.

Installation

pip install omr

Dependencies: pandas, numpy, rich. (Optional: scipy for KS Drift tests). Compatible with Pandas, Polars, and NumPy.


Quickstart

1. Diagnostic Health Check

Get an immediate quality score and detailed issue list.

import pandas as pd
from omr import Dataset

df = pd.read_csv("messy_data.csv")
dataset = Dataset(df)

# Run health check
report = dataset.health()
print(f"Health Score: {report.score}/100")

2. Auto-Cleaning

Automatically fix missing values, duplicate rows, and mixed data types.

dataset.clean()
dataset.explain_changes() # View transformation log

3. Schema Validation

Enforce strict business rules on your dataset.

from omr import schemas

schema = {
    "age": schemas.PositiveInteger(max=120),
    "salary": schemas.PositiveFloat(min=10000),
    "status": schemas.OneOf("active", "inactive"),
    "email": schemas.Email()
}
dataset.validate(schema)

4. Advanced Analytics & Drift

Detect complex issues or compare against production data.

# Detect outliers, multicollinearity, and zero variance features
dataset.analyze()

# Compare against yesterday's data to detect drift
prod_dataset = Dataset(pd.read_csv("prod_data.csv"))
dataset.compare(prod_dataset)

5. Fluent API (Pipelines)

Chain commands together.

clean_df = (Dataset(df)
    .health()
    .clean()
    .analyze()
    .export())

Architecture (SOLID Principles)

OMR is modular and testable. The architecture is cleanly divided into:

  • omr.core: The main Dataset interface and DatasetMetadata state tracking.
  • omr.health, omr.cleaning, omr.profiling, omr.validation, omr.statistics, omr.drift, omr.monitoring, omr.explainability, omr.versioning, omr.pipelines, omr.reports, omr.plugins, omr.integrations, omr.utils, omr.schemas.

Extensibility (Plugins)

OMR supports domain-specific extensions.

from omr import register_plugin

@register_plugin("medical")
class MedicalPlugin:
    def validate_ehr(self, df):
        pass

License

MIT License. See LICENSE for details.

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

omni_data_refinement-0.3.0.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

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

omni_data_refinement-0.3.0-py3-none-any.whl (57.7 kB view details)

Uploaded Python 3

File details

Details for the file omni_data_refinement-0.3.0.tar.gz.

File metadata

  • Download URL: omni_data_refinement-0.3.0.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for omni_data_refinement-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3c59ec4c2650d03d33b8310007a0c3855e2edd24783dc7bf2c6fadb59b58ba1b
MD5 c46daa576b23720df800337f427acafe
BLAKE2b-256 1e53b66584963951401c4e7929cdf0650f8b7b101866e47cfb54740b70d754af

See more details on using hashes here.

File details

Details for the file omni_data_refinement-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for omni_data_refinement-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6c4aa80c84b9257c597031144be4ed1dd25257ea99a8aa94d5074433342d2e2
MD5 9ce145d537aa1cef25e4f1ae48674b34
BLAKE2b-256 cd9c99254342a0a2b4d6a406b557512d3cd242109de6bea9dc098ae43367f69d

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