Unified export toolkit for Weights & Biases
Project description
dr-wandb
Unified export tooling for Weights & Biases.
Installation
uv tool install dr-wandb
Or as a library:
uv add dr-wandb
Authentication
wandb login
CLI
There is one public command:
wandb-export ENTITY PROJECT --name EXPORT_NAME [OPTIONS]
Example metadata-only export:
wandb-export ml-moe moe --name moe_runs --data-root data
This writes:
data/moe_runs/
manifest.json
state.json
runs.jsonl
Example history export:
wandb-export ml-moe moe \
--name moe_history \
--data-root data \
--mode history
This writes:
data/moe_history/
manifest.json
state.json
runs.jsonl
history.jsonl
History export can be limited with selection flags:
wandb-export ml-moe moe \
--name moe_eval_tail \
--data-root data \
--mode history \
--history-key eval/loss \
--history-key eval/accuracy \
--max-records 100
Library Usage
from pathlib import Path
from dr_wandb import ExportEngine, ExportMode, ExportRequest
summary = ExportEngine(
ExportRequest(
entity="ml-moe",
project="moe",
name="moe_runs",
data_root=Path("data"),
mode=ExportMode.METADATA,
)
).export()
print(summary.run_count)
Loaders
Read an existing export back in with the top-level helper functions:
from pathlib import Path
from dr_wandb import load_manifest, load_run_snapshots
manifest = load_manifest("moe_runs", Path("data"))
snapshots = load_run_snapshots("moe_runs", Path("data"))
print(manifest.mode, len(snapshots))
If the export includes history rows:
from pathlib import Path
from dr_wandb import iter_history_rows
rows = list(iter_history_rows("moe_history", Path("data")))
print(len(rows))
ExportStore is also available if you want direct access to the per-export
directory layout and I/O.
Core Concepts
ExportMode.METADATAexports current run snapshots only.ExportMode.HISTORYexports current run snapshots plus history rows.SyncMode.INCREMENTALfetches newly created runs and refreshes tracked non-terminal runs.SyncMode.FULL_RECONCILErebuilds the export from scratch.- Each named export is self-contained inside
data_root / name.
License
MIT
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 dr_wandb-3.0.0.tar.gz.
File metadata
- Download URL: dr_wandb-3.0.0.tar.gz
- Upload date:
- Size: 55.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f9696092326463a2749261a14ad87d9d4ad8ba2b5ef5c9901a271ccb0b61ecc
|
|
| MD5 |
b9ba8ce3787b5cca390d9336fcadabf2
|
|
| BLAKE2b-256 |
1d5aa7bbdfebb1baa69d5967a6fc9a341332211732e4f8f8906c6f19d114fe9c
|
File details
Details for the file dr_wandb-3.0.0-py3-none-any.whl.
File metadata
- Download URL: dr_wandb-3.0.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc8e41e40163897e5ab3aa8fdabb5eb7cd9fb0b9258c005d388f63223e47816b
|
|
| MD5 |
3eea2cd11f378ef7c9bec047afaa0882
|
|
| BLAKE2b-256 |
5227e1f520e4b9a005d2cf3c5e9895d956be409a4ddf59cd8bcde3975a83ec80
|