Metadata-Version: 2.4
Name: runelog
Version: 0.1.0
Summary: A simple, file-based Python library for tracking machine learning experiments.
Project-URL: Homepage, https://github.com/gonz4lex/runelog
Project-URL: Bug Tracker, https://github.com/gonz4lex/runelog/issues
Author-email: Alex González <hello@alexgonzalezc.dev>
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: joblib>=1.5.1
Requires-Dist: pandas>=1.5.0
Requires-Dist: pyyaml>=6.0.2
Requires-Dist: rich>=14.0.0
Requires-Dist: scikit-learn>=1.1.0
Requires-Dist: streamlit>=1.20.0
Requires-Dist: typer[all]
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: coverage; extra == 'dev'
Requires-Dist: mkdocs; extra == 'dev'
Requires-Dist: mkdocs-material; extra == 'dev'
Requires-Dist: mkdocstrings[python]; extra == 'dev'
Requires-Dist: pymdown-extensions; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs; extra == 'docs'
Requires-Dist: mkdocs-material; extra == 'docs'
Requires-Dist: mkdocstrings[python]; extra == 'docs'
Requires-Dist: pymdown-extensions; extra == 'docs'
Provides-Extra: format
Requires-Dist: black; extra == 'format'
Provides-Extra: test
Requires-Dist: coverage; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Description-Content-Type: text/markdown

# RuneLog

[![Build Status](https://github.com/gonz4lex/runelog/actions/workflows/tests.yml/badge.svg)](https://github.com/gonz4lex/runelog/actions/workflows/tests.yml)
[![Codecov](https://codecov.io/gh/gonz4lex/runelog/branch/develop/graph/badge.svg)](https://codecov.io/gh/gonz4lex/runelog)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/gonz4lex/runelog)
[![Docs](https://github.com/gonz4lex/runelog/actions/workflows/deploy-docs.yml/badge.svg)](https://github.com/gonz4lex/runelog/actions/workflows/deploy-docs.yml)

<!-- [![PyPI version](https://badge.fury.io/py/runelog.svg)](https://badge.fury.io/py/runelog) -->

## Lightweight ML Tracker

A simple, file-based Python library for tracking machine learning experiments, inspired by MLflow.

**RuneLog is in active development**. The core API is functional but subject to change.

The name *RuneLog* is a play on words. It evokes the common `run.log()` command used to log an experiment in tracking systems, while also treating these powerful, and sometimes mysterious, models as modern-day mystical writings: a "log of runes".


##  Why Runelog?

- **Zero-Overhead Setup**: start tracking runs in a single line
- **Local-First, Lightweight**: perfect for solo devs or small teams
- **Portable & Transparent**: data is stored in simple folders/files

##  Installation

### User Setup

This is the recommended way to install `runelog` if you just want to use it in your projects.

1. Make sure you have Python 3.8+ installed.
2. Install the library from PyPI using pip:

```bash
pip install runelog
```

That's it! You can now import it into your Python scripts.

### Development Setup

1. **Clone the repository**:

```bash
git clone https://github.com/gonz4lex/runelog.git
cd runelog
```
2. **Create and activate a virtual environment**:

```bash
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
```
3. **Install dependencies**:

```bash
pip install -r requirements.txt
```

#### Quickstart

Start tracking your ML experiments in just a few lines of code:

```python
from runelog import get_tracker

# 1. Initialize the tracker
tracker = get_tracker()

# 2. Get or create an experiment and start a run
with tracker.start_run(experiment_name="my-first-experiment"):
    
    # 3. Your training code and logging calls go here
    tracker.log_metric("accuracy", 0.95)
```

Check the detailed [Quickstart Guide](./docs/quickstart.md) for for a complete runnable example.

#### Usage Examples
You can find example scripts in the `examples/ directory`:

`train_model.py`

Full pipeline example with:
* logging parameters and metrics
* saving and registering models
* tagging and retrieving models

Run it:

```bash
python examples/train_model.py
```

`minimal_tracking.py`

Minimal working example with only metric logging.

Run it:

```bash
python examples/minimal_tracking.py
```
---

### Features
- ✅ **Core Tracking API**: Experiments, runs, parameters, metrics.
- ✅ **Artifact Logging**: Save model files, plots, and other artifacts.
- ✅ **Model Registry**: Version and tag models.
- ✅ **Streamlit UI**: Interactive dashboard to explore runs and the registry.
- 🔄 **Command-Line Interface (CLI)**: For programmatic interaction.
- 🔄 **Full Test Coverage**: Comprehensive unit and integration tests.


### 🐳 Running the UI with Docker

The easiest way to run the Runelog web UI without setting up a local Python environment is with Docker. You must have [Docker](https://www.docker.com/products/docker-desktop/) installed and running.

#### Instructions

1.  Build the Docker image from the root of the project directory:
    ```bash
    docker build -t runelog-app .
    ```

2.  Use `docker-compose` to start the application:
    ```bash
    docker-compose up
    ```

3.  To access the UI, open your web browser and navigate to:
    **[http://localhost:8501](http://localhost:8501)**

4.  To stop the application, press `Ctrl+C` in the terminal, and then run:
    ```bash
    docker-compose down
    ```

