dataforge-engine
Leakage-aware data preparation for machine learning. This is the core of DataForge: pandas, NumPy, SciPy and scikit-learn only, no Streamlit.
The data is split before any preprocessing is fitted. Imputation statistics, category mappings, outlier thresholds and scaling parameters are learned from the training set and reused for validation and test data.
Install
pip install dataforge-engine
Python 3.10 or newer. Optional, for very large files: pip install "dataforge-engine[fast]" (adds polars and duckdb).
Quick start
import pandas as pd
from dataforge_engine import build_pipeline, split_frame
from dataforge_engine.defaults import default_cfg
df = pd.read_csv("customers.csv")
target = "churn"
# 1. Split before fitting anything.
train_raw, val_raw, test_raw, notes = split_frame(df, target, 20, 10, 42, True)
# 2. Fit on the training set, then transform the other sets.
pipe = build_pipeline(default_cfg(target_is_class=True), target)
train_ready = pipe.fit_transform(train_raw)
test_ready = pipe.transform(test_raw)
What is inside
- Pipeline with a fit / transform contract: nothing is learned from validation or test data.
- Leakage report: identical rows across sets and features that copy the target.
- Data contract: infer the expected schema and validate new files against it.
- Advisor: finds problems in a dataset and explains the options.
- Saved pipelines: export a fitted pipeline as JSON and as a Python script, then apply it to new data.
Full examples (saving and reloading a pipeline, generating prepare.py) are in the main README.
Links
- Source and issues: https://github.com/MahdiKordian/DataForge
- Live demo of the app: https://dataforge-tool.streamlit.app/
- Changelog: https://github.com/MahdiKordian/DataForge/blob/main/CHANGELOG.md
License
MIT, copyright 2026 Mahdi Kordian.
Metadata
Release files for dataforge-engine 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dataforge_engine-2.1.0.tar.gz | 77.0 kB | Without provenance | Details for dataforge_engine-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dataforge_engine-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for dataforge_engine-2.1.0-py3-none-any.whl |
Total release size: 139.1 kB
Release files / dataforge_engine-2.1.0.tar.gz
| Download URL | dataforge_engine-2.1.0.tar.gz |
|---|---|
| Size | 77.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00ac753834dd92f3b55e61e5e5c177133ab3823bdd35b06c3528c289988ce749
|
|
BLAKE2b-256 checksum How to use checksums |
0e9b71ae87bb78a44b684d0c2e718de6aa10690f30caf1d7812e84081948b037
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / dataforge_engine-2.1.0-py3-none-any.whl
| Download URL | dataforge_engine-2.1.0-py3-none-any.whl |
|---|---|
| Size | 62.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eadfbec974595eb4022a4c742073558bd111bc30f09da590522e53c776623247
|
|
BLAKE2b-256 checksum How to use checksums |
4656f1d407bbce8dd1f7c39271b0513a9ad2a85da6dfabc20b03e4f6fc140ca0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for dataforge-engine 2.1.0
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.