Skip to main content

DataHive

datahive-tools: the client-side package a lab installs to collect, validate, annotate, and upload HiveBoard manipulation episodes to its private Hugging Face dataset repo.

Credits & Attribution: All pipeline architecture, workflows, and core design in DataHive are directly adapted from and credited to Oopsie Data (oopsie-data / oopsie_data_tools). Everything in DataHive — from the CLI workflow, robot profiles, and dataset indexing to the annotation GUI and Hugging Face Hub synchronization pipeline — was built upon the pipeline and concepts developed by the Oopsie Data team.

Install

pip install datahive-tools
pip install "datahive-tools[video]"   # optional: OpenCV, so videos are actually checked

Requires Python 3.10 or newer. This installs the datahive command.

Quickstart

datahive init                 # one-time: writes ~/.datahive/config.yaml (0600)
datahive new-profile          # writes samples/robot_profile.yaml -- fill in ONCE
# ... record episodes into samples/{session}/episodes/{episode}.h5 + .mp4 ...
datahive check <episode_id>   # pre-annotation health check (frames, Hz, MP4s)
datahive annotate <episode_id>
datahive validate <episode_id>
datahive upload <episode_id>
datahive sync                 # reconcile all of samples/ with the Hub
datahive list
datahive delete <episode_id>
datahive interface --port 8000 # local web GUI, localhost only (alias: serve)

The sections of datahive interface

Opening the interface shows a start screen with two sections, plus an About and FAQ area. Both sections share the same samples/ tree.

  • Runner – runs HiveBoard trials. Create a session (operator and date; the lab ID comes from datahive init and the platform ID from the robot profile), generate the trial plan (5 trials for each chosen task, shuffled or ordered), then run each trial in one of two modes, switchable at any time:
    • Manual: 5 s countdown, stopwatch, sounds and automatic timeout in the browser (Space starts and stops), then record the outcome and upload the HDF5 file and one video per camera in the robot profile. The trial counts as valid only when all of them are uploaded and the episode passes validation.
    • Automatic: send the trial to your robot script (below). It records the episode, and you annotate it in the Annotate section, which opens on that episode.
  • Annotate – review recorded episodes, annotate them, validate the data, and upload it to the Hub.

Robot side of automatic mode:

from datahive.collect import CollectClient

robot = CollectClient("samples", base_url="http://127.0.0.1:8000")
while True:
    task = robot.wait_for_task()             # blocks until you press "Send to robot"
    with robot.new_writer(task) as writer:   # EpisodeWriter for that trial
        ...                                  # append_proprioception / append_command / attach_video
    robot.finish(writer)                     # hands the episode over, waits for the annotation

Trials are saved as rows of samples/<session_id>/trials_<session_id>.csv; all times are stored in UTC.

Example: a full robot integration

fr3_datahive collects DataHive episodes with a Franka Research 3: a ready-to-run Docker container (ROS 1 Noetic, libfranka, franka_ros, joystick teleop) that implements the robot side of both Manual and Automatic collection above. Use it as a reference for wiring up CollectClient / EpisodeWriter against a real robot loop.

AI assistant skills

Two skills for AI coding assistants (e.g. Claude Code) live in src/datahive/skills/:

  • datahive-data-prep – how to lay out, format, annotate and check data under samples/ so it validates.
  • datahive-auto-collect – how automatic collection works and how to adapt the robot script to your setup.

Install them for Claude Code with:

datahive install-skill          # into ./.claude/skills (this project)
datahive install-skill --user   # into ~/.claude/skills (all projects)
datahive install-skill --dir DIR --force

Development

git clone https://github.com/hiveboard-bench/DataHive
cd DataHive
pip install -e ".[dev]"
pytest

All tests run with no real network access and no real Hugging Face credentials.

Credits & Acknowledgments

All credit for the underlying pipeline architecture goes to the Oopsie Data (oopsie-data / oopsie_data_tools) project. DataHive was built on top of their pipeline patterns, including:

  • Interactive Annotation & GUI: The web-based annotator interface, video playback controls, task picker, episode navigation, and failure classification.
  • Data Lifecycle: The full init -> new-profile -> annotate -> validate -> upload -> sync pipeline.
  • Dataset Structure & Profiling: Hardware platform specification snapshots, HDF5 episode storage, and Hub reconciliation.

We are deeply grateful to the Oopsie Data contributors for their pioneering work in robotic data pipelines.

Metadata

Release files for datahive-tools 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datahive-tools 0.1.8
File Size Uploaded Provenance Actions
datahive_tools-0.1.8.tar.gz 1.1 MB With provenance Details for datahive_tools-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datahive-tools 0.1.8
File Interpreter ABI Platform Actions
datahive_tools-0.1.8-py3-none-any.whl Python 3 none any Details for datahive_tools-0.1.8-py3-none-any.whl

Total release size: 2.2 MB

Release files / datahive_tools-0.1.8.tar.gz

Download URL datahive_tools-0.1.8.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5436b64fc869ad265d5096413dfeb4f84ebb65ee4c49061dbfa7d26e866af17a
BLAKE2b-256 checksum
How to use checksums
7ea0a0343bf1905566417085e1e29ee0019346653107902064e7307f04b57bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / datahive_tools-0.1.8-py3-none-any.whl

Download URL datahive_tools-0.1.8-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3a79831305bf524c4d88ea2e2648429a8c4cd065416fe6c22af74cfe51bb420d
BLAKE2b-256 checksum
How to use checksums
5015fb46e65a6d07f9d1487881649473904cecd0657289e573faa619b41be3a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for datahive-tools 0.1.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for datahive_tools-0.1.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page