A minimal dataset versioning system for text data with a focus on reproducibility.
Project description
Marco Dataset Versioning System
A minimal dataset versioning system for text data with a strong focus on reproducibility and transparency. Treat your text datasets like code — immutable, versioned, reproducible, and explainable.
Marco acts as a lightweight Python library, meaning you can initialize it in any machine learning project folder to safely version and preprocess your datasets without altering your original files.
🚀 Installation (Linux / MacOS)
On modern Linux environments (like Arch Linux, Ubuntu 23.04+), Python packages must be installed in a Virtual Environment (PEP 668) to prevent conflicts with your system packages.
Follow these steps to safely install Marco into your ML project:
-
Clone this repository to your local machine:
git clone https://github.com/your-username/marco.git cd marco
-
Navigate to the ML project folder where you want to train your model (e.g. your bag-of-words project):
cd ~/projects/my-bag-of-words-model
-
Create and activate a Python Virtual Environment:
# Create a virtual environment named 'venv' python3 -m venv venv # Activate it (You must do this every time you open a new terminal in this folder) source venv/bin/activate
(You should now see
(venv)at the start of your terminal prompt!) -
Install Marco:
# Point pip to the directory where you cloned the marco repository pip install -e /path/to/marco
🛠️ Usage Guide
Once marco is installed in your virtual environment, you have access to the full CLI!
1. Initialize a Repository
Initialize Marco tracking in your current directory. This creates a .marco/ data versioning environment specific to that project.
marco init
2. Create an Immutable Version
Upload a text/CSV/TSV dataset to create an immutable version. Marco will compute a cryptographically secure SHA-256 hash using the raw data + the preprocessing configuration.
Interactive Mode: If you don't supply a configuration file, Marco will interactively guide you through building the preprocessing pipeline (Lowercasing, Tokenization, Stopwords Removal, Deduplicating).
marco upload my_dataset.csv -t v1-raw
Config Mode:
marco upload my_dataset.csv -c my_config.json -t v1-processed
3. List Versions
View all the versions you've created, along with their tags and timestamps.
marco list
4. Start the Visual Dashboard
Open the Flask-powered web dashboard to view dataset metadata, differences between versions, and complete data lineage trees.
python -m marco.web.app --port 5000
Open http://localhost:5000 in your web browser.
5. Export / Import Versions
Easily share dataset versions with teammates by packing them into .tar.gz files.
# Export version 'v1-raw' to the 'exports' folder
marco export v1-raw ./exports/
# Import an archive sent to you by a coworker
marco import ./exports/marco_version_e5e0b767.tar.gz
🧠 Architecture Overview
Marco decouples logic from the file system. All core engine operations sit inside marco/core/, including:
locker.py: File-based concurrency control using.lockfiles.repository.py: CRUD operations for dataset versions andrefs.jsontagging.preprocessor.py: A robust Directed Acyclic Graph (DAG) preprocessing engine.
Have fun building safer machine learning pipelines!
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
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 marco_dvcs-0.1.0.tar.gz.
File metadata
- Download URL: marco_dvcs-0.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03a1a92e30dd07ee1e668a3d663c3e5fb05e0789e0492ac3c5741122d46eaad7
|
|
| MD5 |
33664413558409ef1a6f93bfb6398b0c
|
|
| BLAKE2b-256 |
4535c55db19491a9a9caaa87987b231876fcba6c78ca789a01aa36cf558b968c
|
File details
Details for the file marco_dvcs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: marco_dvcs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a3397f17aba1d70f9323247ecc3f15fefaedcc6b490fb57887ece9ba2a0ecc2
|
|
| MD5 |
07a0d06ca9ce326206f7395a274e3e4e
|
|
| BLAKE2b-256 |
0297be643cdc6ee19718395ca25d677ec02bd7a8cd68546fefe83b9a3c965ff0
|