Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

data-foundry

Latest version: v0.0.6.dev20261124111319

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: LennartPurucker
11 Stars
2 Forks
54 Versions
39.7K Downloads
Jupyter Notebook Repo language

Scan summary

data-foundry was last scanned on 24 Nov 2026 at version 0.0.6.dev20261124111319. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 54 versions; the latest was published on 24 Nov 2026.
  • Findings: No rules fired in version 0.0.6.dev20261124111319.
  • Downloads: 39,748 downloads.

Versions

54 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.6.dev20261124111319 LATEST 24 Nov 2026 No rules fired
0.0.6.dev20261116225935 16 Nov 2026 No rules fired
0.0.6.dev20261116221830 16 Nov 2026 No rules fired
0.0.6.dev20261116150743 16 Nov 2026 Not shown
0.0.6.dev20261116145224 16 Nov 2026 Not shown

No rules fired in 0.0.6.dev20261124111319

Findings

Findings for v0.0.6.dev20261124111319. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.6.dev20261124111319; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Data Foundry: a Schema and Toolkit for Curating Tabular ML Datasets


📂 Examples 🗂️ Curation Log 🚀 Getting Started 🧑‍🔬 Contribute a Dataset 📄 Paper

Data Foundry is the data layer behind the next generation of TabArena datasets. It provides:

  • A small, opinionated schema for tabular datasets, tasks (IID / temporal non-IID / grouped non-IID), and outer CV splits — aligned with OpenML where possible, extended where it had to be.
  • A curation toolkit so a curator turns a raw download into a reproducible artifact: one dataset.py definition per dataset (data_foundry.v2), with the split protocol, sanity checks, bundle checks and a generated evidence page built in.
  • A collections API that pins datasets (defined by (unique_name, uuid)) to immutable curated containers and resolves them against a local warehouse or directly against Hugging Face, as for the BeyondArena Datasets. It is how every collection ships, BeyondArena today and TabArena v0.2 next.
  • A git-native curation log + dashboard — the dataset backlog lives as one markdown record per candidate dataset under curation/records/, edited locally through a Sheets-like dashboard (data-foundry-curation serve) with a built-in Guidelines tab, and published as a read-only public site on GitHub Pages. It replaces the old curation spreadsheet; a new dataset is added simply by creating a markdown file.

⚡ Quickstart

[!TIP] Pull a real curated dataset from BeyondArena and inspect its full metadata + outer CV splits. The first call fetches from Hugging Face; subsequent calls hit your local cache.

pip install data-foundry
python examples/load_curated_container.py
from data_foundry.collections import BEYOND_ARENA

container = BEYOND_ARENA.get_dataset("airfoil_self_noise")
print(container.describe())          # full identity + dtypes + task + splits
print(container.dataset.shape)       # the actual DataFrame
print(container.task_metadata.split_regime)  # "iid", "temporal_non_iid", or "grouped_non_iid"

That's the whole API surface in three lines. See examples/benchmark_on_beyond_arena.py for benchmarking Random Forest on the data!

🕹️ Use Cases

The package ships a toy CuratedContainer so you can poke at the full API — schema, dtypes, splits, describe() — without touching the network. Identical interface to a downloaded BeyondArena container.

from data_foundry.curation_container import CuratedContainer
from data_foundry.examples import get_toy_container_path

container = CuratedContainer.load(get_toy_container_path())
print(container.describe())          # full identity + dtypes + task + splits
print(container.dataset.shape)       # the actual DataFrame
print(container.task_metadata.split_regime)  # "iid", "temporal_non_iid", or "grouped_non_iid"

Full inspection script (every metadata field printed): examples/load_curated_container.py.

Download a single BeyondArena container by name (or UUID) and iterate its outer CV splits. The collection resolves the container against your local cache; subsequent runs hit disk, not the network.

from data_foundry.collections import BEYOND_ARENA

container = BEYOND_ARENA.get_dataset("airfoil_self_noise")
df = container.dataset
target = container.task_metadata.target_column_name

for repeat_id, folds in container.experiment_metadata.splits.items():
    for fold_id, (train_idx, test_idx) in folds.items():
        X_train, y_train = df.iloc[train_idx].drop(columns=target), df.iloc[train_idx][target]
        X_test,  y_test  = df.iloc[test_idx].drop(columns=target),  df.iloc[test_idx][target]
        # ... fit, evaluate ...

Full worked example (Random Forest, RMSE per fold, full metadata via container.describe()): examples/benchmark_on_beyond_arena.py.

Split regimes. A collection ships datasets from three regimes — which one a dataset is in shows up directly on task_metadata:

Regime Set on task_metadata Meaning
IID neither time_on nor group_on rows are independent; random / stratified splits
temporal non-IID time_on set rows ordered in time; future rows must not leak backwards
grouped non-IID group_on set (+ group_labels) all rows of a group stay together in one fold

Container formats. container.format_version is 2 for a container built by a dataset.py definition (the TabArena v0.2 working copy and every new dataset) and 1 for the shipped BeyondArena containers, which were built with Data Foundry v1 (DATA_FOUNDRY_V1.md); a format-2 container also states it in container_metadata.json. The collections API and CuratedContainer.load read both. Both read the same through task_metadata.time_on, group_on, group_labels and group_time_on. Format 2 stores the group fields once, in a Grouping (data_foundry.schema.Grouping), and container.grouping returns it: the prediction unit (a row, or one prediction per group with an aggregation such as mean or any), what a model may know about a group when predicting, and the definition of a group with its source. A format-1 container has no such block, so container.grouping raises there. The group column is split and scoring metadata, never a model feature. A format-2 container keeps its outer splits in a row table, rows.parquet: one row per row of dataset.parquet, one column per split (split_r<repeat>_f<fold>) holding train, test or nothing, so it opens in any Parquet reader next to the data (examples/read_metric_without_data_foundry.py reads it without Data Foundry); container.experiment_metadata.splits returns the same {repeat: {fold: (train, test)}} for either layout, every side in row order. run_bundle_checks judges each format by its own split protocol (v1: the repeat ladder, 1M train and 250k test rows; v2: 3 folds, and the test cap of the experiment_metadata.row_budget a _1m version records: no size limit without one).

Row budget. A format-2 container with a row_budget (a <name>_1m version) tests on at most row_budget.test rows per split, and its train sides keep every row they may use (all earlier rows of a temporal window). A benchmark fits on at most row_budget.train of them: subsample_train(container, repeat, fold) (data_foundry.v2) draws them by the default sampler the container records in experiment_metadata.train_sampling (for a temporal side the newest year, extended back in time until it holds that many rows, sampled at random; whole groups of a grouped one, stratified rows otherwise), and returns the train side whole for a container without a budget. A numeric time column carries its calendar in task_metadata.time_unit (numerai's era counts weeks). A benchmark that samples by its own rule keeps the unit train_sampling names.

Checksums. container.verify() recomputes a container's checksum and compares it with the stored one (with get_dataset(..., verify=True) a collection does it on load). A container built since 2026-10-06 has a version-2 checksum (v2:<hex>): it also covers each categorical column's categories, their order and ordered (saved in categories.json, since dtypes.json only says category), and the unlabeled test set through its own test_dataset_checksum; a new container needs the index 0..n-1 and string column names. A checksum without the prefix is version 1 (every shipped BeyondArena container) and keeps verifying as it always did.

Side-by-side regime printout (one IID, two grouped variants — per_group vs per_sample — and one temporal): examples/data_foundry_data_regimes.py.

A collection pins its datasets by (unique_name, uuid) and resolves them against a source (Hugging Face, or a local warehouse); list_collections() and get_collection(name) find the registered ones. BEYOND_ARENA is the first, and the TabArena v0.2 collection will be registered the same way. BEYOND_ARENA.prefetch(...) batches every container into a single Hugging Face snapshot_download call (one network round-trip for the whole collection). On a warm cache it skips importing huggingface_hub entirely.

BeyondArena's containers are the April 2026 builds and stay pinned, so an old task can still carry a leak that its v2 folder has since fixed; the v2 folders are the latest state (known issues).

from data_foundry.collections import BEYOND_ARENA

paths = BEYOND_ARENA.prefetch()          # warms the cache once
for container in BEYOND_ARENA.iter_containers():  # now hits disk only
    print(container.dataset_metadata.unique_name, container.dataset.shape)

Cache management:

BEYOND_ARENA.clear_cache()                 # nuke this collection's subdir
BEYOND_ARENA.get_dataset(name, force_download=True)  # re-fetch a single container

Full worked example with tqdm progress + checksum verification: examples/download_all_beyond_arena_datasets.py.

A dataset is one class in a dataset.py: flat attributes for the metadata and the task, and hooks for reading and cleaning. The base class adds the dtype casts, the row order, the split protocol, the checks and the export. A complete small definition (blood_transfusion), shortened:

import pandas as pd
from data_foundry.v2 import AbstractCuratedDataset, Source


class BloodTransfusion(AbstractCuratedDataset):
    unique_name = "blood_transfusion"
    domain = "medical & healthcare"
    sources = (
        Source(
            role="publication",
            platform="UCI",
            url="https://doi.org/10.24432/C5GS39",
            license="CC BY 4.0",
            year="2008",
            bibtex="""
                @article{yeh2009knowledge, title={Knowledge discovery on RFM model using Bernoulli sequence}, ...}
            """,
        ),
    )
    download_description = """
        mkdir -p local-data-warehouse/blood_transfusion/ && wget -P local-data-warehouse/blood_transfusion/ <UCI zip> && unzip ...
    """
    curation_comments = """
        - We renamed the target and mapped binary values to "Yes"/"No".
        - Anomaly: the data has a lot of duplicates (29%) and several duplicates with different target values.
    """
    target = "DonatedBloodInMarch2007"
    problem_type = "binary_classification"   # metric roc_auc and a stratified IID split by default

    def _load_raw(self, raw_dir):
        return pd.read_csv(raw_dir / "transfusion.data")

    def _clean(self, raw):
        df = raw.set_axis([..., "DonatedBloodInMarch2007"], axis=1)
        df["DonatedBloodInMarch2007"] = df["DonatedBloodInMarch2007"].map({1: "Yes", 0: "No"})
        return df

A grouped task adds grouping = Grouping(on=..., labels=..., prediction_unit=..., definition=...), a temporal one temporal = Temporal(on=..., splits=TemporalSplits(...)). Then:

.venv/bin/python -m data_foundry.curation.cli dataset new <unique_name> --root datasets/_dev/tabarena-v0pt2
.venv/bin/python -m data_foundry.curation.cli dataset check datasets/_dev/tabarena-v0pt2/<unique_name>   # no save; writes README.md
.venv/bin/python -m data_foundry.curation.cli dataset build datasets/_dev/tabarena-v0pt2/<unique_name>   # saves the container (curators)

The contributor flow (the steps, the probes, the Claude Code skills, the practices) is in CONTRIBUTING_DATASETS.md.

Before a dataset becomes a definition, it lives in the curation log: one markdown record per candidate dataset under curation/records/. Each <unique_name>.md has YAML front-matter (the structured / dropdown fields) plus a free-text body (## Comments, ## Reference). Add or triage a dataset by creating/editing its file — by hand, with an agent, or through the dashboard.

pip install "data-foundry[curation]"   # or the editable dev install
data-foundry-curation serve            # → http://127.0.0.1:8765

The local, Sheets-like dashboard edits those records in place (filter by status, pin a working row, add dropdown options, …) and ships a built-in Guidelines tab describing the selection criteria and processing conventions. Other CLI subcommands:

data-foundry-curation validate                 # check records against the dropdown vocab
data-foundry-curation sync-notebooks           # refresh each record's notebook_path + v2_path (--check to dry-run)
data-foundry-curation export --format xlsx out.xlsx   # flat snapshot (csv|parquet|xlsx|gsheet)
data-foundry-curation build-site site/          # read-only static copy (e.g. GitHub Pages)
data-foundry-curation dataset check <folder>    # run a v2 dataset.py + bundle checks, write README.md (no save)

Browse it online. A read-only copy of the backlog is published to GitHub Pages — tabarena.github.io/data-foundry — and regenerated automatically from curation/records/ on every push to main (no install, no network round-trip to Hugging Face; search, sort, filter, and pin all run in the browser). Note this makes every record's comments, reviewer names, and decision notes public.

Working with Claude Code? The repo ships four curation commands and two knowledge skills (in .claude/skills/); start with .claude/skills/README.md, which the dashboard also shows as "Start here". In each of the two stages the AI works and the curator verifies:

Stage The AI works The curator verifies
Screen: a quick pass from the source, with a priority /screen-candidates /review-screened-candidates (the dashboard)
Add: build the dataset and attack it with a review panel /add-dataset /review-added-datasets (the review page)

The knowledge skills, knowledge-curation (how we decide and curate, as ranked rules) and knowledge-data-foundry (how this repo implements it), hold what every command applies; builds and commits happen only when the curator asks.

Loading, browsing and benchmarking shipped datasets needs no command; CLAUDE.md and examples/ cover it.

🪄 Installation

[!IMPORTANT] Requires Python 3.10+.

pip install data-foundry            # load and use curated datasets
pip install "data-foundry[build]"   # also build datasets from their definitions
git clone https://github.com/TabArena/data-foundry.git
cd data-foundry
uv pip install -e .
git clone https://github.com/TabArena/data-foundry.git
cd data-foundry
uv pip install -e ".[dev]"
pytest                                 # run the test suite
ruff check . && ruff format --check .  # lint + format

Loading and using a container needs only the core install. The build extra adds what building a dataset from its definition needs: scikit-learn for the splits, scipy for the checks, and the readers the definitions use (liac-arff, openml, polars, the Excel engines, matplotlib). tests adds build and pytest; dev adds both plus the curation tools (autogluon, kaggle, seaborn, ruff, …). pandas 2.3 and 3 build and load the same containers; the lock stays on pandas 2 because AutoGluon (and so TabArena) requires pandas below 2.4.

🗂️ Repository Structure

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases data-foundry

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229