Macrodata Refiner
Refiner is Macrodata's open-source Python library for reading, transforming, and writing robotics datasets.
It provides one pipeline model for working with robot episodes, frames, videos, metadata, and model-based processing. Use it to convert formats, transform data, run inference, and write structured outputs on your own infrastructure.
This repository also includes open-source reference versions of some of the pipelines we develop at Macrodata. They are useful starting points, but they are not the full pipelines we adapt, evaluate, and run for customers. If you want to see what those pipelines can do with your data, send us a representative sample.
Quickstart
Install:
pip install macrodata-refiner
This gives you:
- the Python package as
refiner - the CLI as
macrodata
Launch a local pipeline:
import refiner as mdr
def add_preview(row):
return row.update(
preview=" ".join(row["text"].split()[:20]),
)
(
mdr.read_jsonl("input/*.jsonl")
.filter(mdr.col("lang") == "en")
.with_columns(
text=mdr.col("text").str.strip(),
text_len=mdr.col("text").str.len(),
)
.map(add_preview)
.write_parquet("s3://my-bucket/english-cleanup/")
.launch_local(
name="english-cleanup",
num_workers=2,
)
)
Batteries included
- a consistent row and episode model for robot trajectories, frames, videos, metadata, tasks, and statistics
- readers and writers for LeRobot, HDF5, Zarr, MCAP, Parquet, JSONL, and other common data formats
- composable transforms and model inference for converting and enriching data
- open-source reference operations for motion trimming, subtask annotation, reward scoring, and hand tracking
- access to storage backends supported by
fsspec, including S3, GCP, and Hugging Face - in-process debugging and local multi-worker execution
Docs
Start here:
Build a dataset:
Community
- join the Macrodata Discord: https://discord.gg/S8kZtmBR2x
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 macrodata_refiner-0.3.8.tar.gz.
File metadata
- Download URL: macrodata_refiner-0.3.8.tar.gz
- Upload date:
- Size: 335.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d3c8234ba69d92be884e6b523686ca8a4f836749f6932030a602a62a5eb886c
|
|
| MD5 |
eeafbbbc67d54eecd3d1fe7aacd866cc
|
|
| BLAKE2b-256 |
e932abfbd963e6b8cfc2a556c16f119fdfd2cd922774e6be78ad64201f98ade5
|
Provenance
The following attestation bundles were made for macrodata_refiner-0.3.8.tar.gz:
Publisher:
pypi-release.yml on macrodata-labs/refiner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macrodata_refiner-0.3.8.tar.gz -
Subject digest:
3d3c8234ba69d92be884e6b523686ca8a4f836749f6932030a602a62a5eb886c - Sigstore transparency entry: 2751656650
- Sigstore integration time:
-
Permalink:
macrodata-labs/refiner@532971236e969e36aab80c9cf902c10deb4bf117 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/macrodata-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@532971236e969e36aab80c9cf902c10deb4bf117 -
Trigger Event:
push
-
Statement type:
File details
Details for the file macrodata_refiner-0.3.8-py3-none-any.whl.
File metadata
- Download URL: macrodata_refiner-0.3.8-py3-none-any.whl
- Upload date:
- Size: 413.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b1863cdf8ade9ab853b772c03b80a5027a588d5a104609b7fc1fa48745306d9
|
|
| MD5 |
4cdf02dab62ba6f735776f374de315b8
|
|
| BLAKE2b-256 |
7e341e68ff6d409c895d8a7ea99f9a3d73dcd447471ea736278ed9bbf539036e
|
Provenance
The following attestation bundles were made for macrodata_refiner-0.3.8-py3-none-any.whl:
Publisher:
pypi-release.yml on macrodata-labs/refiner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macrodata_refiner-0.3.8-py3-none-any.whl -
Subject digest:
4b1863cdf8ade9ab853b772c03b80a5027a588d5a104609b7fc1fa48745306d9 - Sigstore transparency entry: 2751656712
- Sigstore integration time:
-
Permalink:
macrodata-labs/refiner@532971236e969e36aab80c9cf902c10deb4bf117 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/macrodata-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@532971236e969e36aab80c9cf902c10deb4bf117 -
Trigger Event:
push
-
Statement type: