Skip to main content

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.METADATA exports current run snapshots only.
  • ExportMode.HISTORY exports current run snapshots plus history rows.
  • SyncMode.INCREMENTAL fetches newly created runs and refreshes tracked non-terminal runs.
  • SyncMode.FULL_RECONCILE rebuilds the export from scratch.
  • Each named export is self-contained inside data_root / name.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dr_wandb-3.0.0.tar.gz (55.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dr_wandb-3.0.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

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

Hashes for dr_wandb-3.0.0.tar.gz
Algorithm Hash digest
SHA256 2f9696092326463a2749261a14ad87d9d4ad8ba2b5ef5c9901a271ccb0b61ecc
MD5 b9ba8ce3787b5cca390d9336fcadabf2
BLAKE2b-256 1d5aa7bbdfebb1baa69d5967a6fc9a341332211732e4f8f8906c6f19d114fe9c

See more details on using hashes here.

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

Hashes for dr_wandb-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc8e41e40163897e5ab3aa8fdabb5eb7cd9fb0b9258c005d388f63223e47816b
MD5 3eea2cd11f378ef7c9bec047afaa0882
BLAKE2b-256 5227e1f520e4b9a005d2cf3c5e9895d956be409a4ddf59cd8bcde3975a83ec80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page