Experiment tracker and lab journal made for humans — and sexy human-agent interaction for AI research
Project description
buro
An experiment tracker and lab journal made for humans — and for sexy human ⇄ agent interaction in AI research. Log your runs, metrics, and media to a Buro server.
Install
pip install buro
Quickstart
import buro
run = buro.init(project="my-project") # or "team-slug/my-project"
for step in range(100):
buro.log({"loss": 1.0 / (step + 1), "acc": step / 100}, step=step)
buro.finish()
init(project=...) resolves the project against the server and auto-creates it
if it doesn't exist. project is a slug ref: "slug" (personal) or
"team-slug/slug" (team).
Authenticate
Log in once on your machine:
buro login --api-url https://<your-buro-server>
buro whoami
The SDK resolves credentials in this order:
buro.setup(api_key=..., api_url=...)in codeBURO_API_KEY/BURO_API_URLenvironment variables~/.buro/credentials(written byburo login)
On a cluster or in CI, the env-var path is usually easiest:
export BURO_API_KEY=buro_key_...
export BURO_API_URL=https://<your-buro-server>
Log media
buro.log({"sample": buro.Image("path/to/image.png")}) # numpy array or PIL image also work
# also available: buro.Audio, buro.Video
Code tracking
Every run automatically snapshots the source code that actually ran, so the compare view can show exactly what changed between two runs — not just which hyperparameters differed.
It works by tracing, not scanning: buro watches the Python modules your run
imports and keeps the ones that are your code — everything outside the
standard library, your installed packages, and buro itself. Each file is
recorded under its import path (models/encoder.py, not an absolute path on
your machine), hashed, and uploaded once — identical files are shared across
runs, so a hyperparameter sweep that doesn't touch the code uploads nothing new.
Because it follows the imports rather than walking a directory, the snapshot is:
- exactly your run's code — the entry script plus the modules it imported, across packages; never a stray sweep of your whole repo, a sibling project, or config/secret files that happen to sit nearby;
- the same on every machine — a file is identified by how it's imported, so the same code on your laptop and on a cluster diffs as unchanged;
- best-effort — snapshotting never slows down or crashes your run.
Config files (config.yaml, lockfiles, …) are not captured — their values
already live in your run config (buro.init(config=...)). For an unusual layout,
or to pin exactly what's captured, set BURO_CODE_ROOT=/path/to/project.
What gets captured
The snapshot is Python source only: your entry script plus the imported user
modules that resolve to a .py/.pyi file — recorded by import path, hashed, and
deduplicated.
These are not captured:
- Compiled extension modules —
.so/.pyd/.dylib(Cython, pybind11, and CUDA extensions, plus JIT-compiled artifacts such as Triton'scuda_utils). Build output, not source. - Python bytecode —
.pycwithout source. - Any file detected as binary — a NUL byte in its first bytes.
- Third-party / standard-library packages — already excluded by the user-code filter.
- Non-imported files — configs, lockfiles, data, and native source
(
.cu/.cpp) that isn't itself an imported module; the snapshot followssys.modules, not a directory walk.
The identity of compiled and third-party code lives in the environment capture
instead (pip freeze, CUDA / driver, GPU, host metadata). When modules are skipped,
buro logs one line naming them — visible in your console and the run's Logs.
System metrics
Every run also logs host system metrics in the background — no setup needed:
CPU utilization (system-wide, plus system/cpu.busiest for the single hottest
core), RAM, disk and network throughput in MB/s, and — on NVIDIA hosts — per-GPU
utilization, memory, temperature, and power.
To stay light on storage, buro samples often but logs rarely: it reads the counters every ~2s and writes one windowed summary every ~30s (mean for gauges, peak for the busiest core, rate for I/O). Tune or turn it off:
buro.setup(
system_emit_sec=30, # how often a summary point is written (default 30s)
system_sample_sec=2, # how often counters are sampled underneath (default 2s)
system_metrics_enabled=True, # set False to disable system metrics entirely
)
Docs
wandbAPI compatibility:docs/wandb-compatibility.md- Release/publishing process:
docs/publishing.md
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 buro-0.0.9.tar.gz.
File metadata
- Download URL: buro-0.0.9.tar.gz
- Upload date:
- Size: 217.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca1865081e18ea6d0a3c3a294498591667acb68b3d0feb62dc3ef871dba51614
|
|
| MD5 |
5a3149bb414694f51944a8cf4cdc0027
|
|
| BLAKE2b-256 |
aedcce062c6f65d0ca0a1b14800ae93fb45755ba4609b2fbae27ebce0a812664
|
Provenance
The following attestation bundles were made for buro-0.0.9.tar.gz:
Publisher:
sdk-publish.yml on dunnolab/buro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buro-0.0.9.tar.gz -
Subject digest:
ca1865081e18ea6d0a3c3a294498591667acb68b3d0feb62dc3ef871dba51614 - Sigstore transparency entry: 1968438976
- Sigstore integration time:
-
Permalink:
dunnolab/buro@a4957dafc72c0b11ceddbd3a946cf171bede81cb -
Branch / Tag:
refs/tags/sdk-v0.0.9 - Owner: https://github.com/dunnolab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@a4957dafc72c0b11ceddbd3a946cf171bede81cb -
Trigger Event:
release
-
Statement type:
File details
Details for the file buro-0.0.9-py3-none-any.whl.
File metadata
- Download URL: buro-0.0.9-py3-none-any.whl
- Upload date:
- Size: 47.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f4712466cb372fa58145361b0cb1fde65820e7a38c9354cbf18c63d6068b2bc
|
|
| MD5 |
00f0e69c8b471684ff7ce92698b15a3d
|
|
| BLAKE2b-256 |
a4236d5b066149353bda08bb45605aada00910184f94b60e7e1e7aeb24a9a30e
|
Provenance
The following attestation bundles were made for buro-0.0.9-py3-none-any.whl:
Publisher:
sdk-publish.yml on dunnolab/buro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buro-0.0.9-py3-none-any.whl -
Subject digest:
5f4712466cb372fa58145361b0cb1fde65820e7a38c9354cbf18c63d6068b2bc - Sigstore transparency entry: 1968439097
- Sigstore integration time:
-
Permalink:
dunnolab/buro@a4957dafc72c0b11ceddbd3a946cf171bede81cb -
Branch / Tag:
refs/tags/sdk-v0.0.9 - Owner: https://github.com/dunnolab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@a4957dafc72c0b11ceddbd3a946cf171bede81cb -
Trigger Event:
release
-
Statement type: