CLI tool to responsibly share datasets by gzipping, canarying, and tracking provenance.
Project description
Easy Dataset Share
A CLI tool that helps AI researchers share datasets responsibly. Prevents evaluation contamination by making datasets easy for researchers to use but hard for automated scrapers to ingest.
Features
- Canary markers: Unique identifiers to detect if your dataset was used for training
- Hash verification: Ensures dataset integrity through SHA256 hashing
- Protection layers: ZIP compression, optional encryption, robots.txt
- Clean removal: Remove all protection while preserving original data
Installation
pip install easy-dataset-share
For development:
git clone <repo-url>
cd easy-dataset-share
pip install -e .
git config core.hooksPath .githooks
Quick Start
Protect a dataset
easy-dataset-share magic-protect-dir /path/to/dataset -p your-password
Unprotect and clean
easy-dataset-share magic-unprotect-dir dataset.zip -p your-password --remove-canaries
Verify integrity
easy-dataset-share hash /path/to/dataset
Commands
Protection
magic-protect-dir- Add canaries, robots.txt, zip and encryptmagic-unprotect-dir- Extract and optionally remove canaries
Verification
hash- Hash directory contents (excludes canaries)get-canary-string- Get dataset's unique identifier
Individual operations
add-canary/remove-canary- Manage canary filesadd-robots/add-tos- Add usage restrictions
How it Works
- Hash original dataset for integrity baseline
- Add canary markers throughout the dataset
- Package with robots.txt and optional encryption
- Verify integrity when unprotecting (canaries removed, data unchanged)
Example Workflow
# Protect
easy-dataset-share magic-protect-dir my_dataset -p secret123
# Share dataset.zip publicly
# Recipients unprotect and remove canaries
easy-dataset-share magic-unprotect-dir dataset.zip -p secret123 --remove-canaries
# Output shows: "📊 Dataset hash: abc123..." (matches original)
Use -v for verbose output to see hashing details and canary operations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_dataset_share-0.2.2.tar.gz
(435.7 kB
view details)
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