Skip to main content

Experiment Tracker

A simple experiment tracker that supports wandb, trackio and local jsonl storage. Features include:

Features

  1. Multi-Backend Support: Compatible with wandb, trackio, and local jsonl storage.
  2. Alert System: Send alerts via Lark, with email and other platforms to be added.
  3. Resume Functionality: Allows resuming experiments using project and name as unique identifiers.
  4. Simple API: Provides a straightforward API similar to wandb, making it easy to integrate into existing workflows.

Usage

Add dependency to your project:

uv add expr_tracker

Simple usage example:

import expr_tracker as et

et.init(project="my_project", name="my_experiment", backends=["wandb", "jsonl"])
et.log({"accuracy": 0.95, "loss": 0.05})
et.alert("Experiment completed!", text="Your experiment has finished successfully.", subtitle="Experiment Status")
et.finish()

JSONL buffering

The jsonl backend adapts its buffering to how often you call log(), so that high-frequency logging doesn't hammer the disk (helpful on network mounts such as BlobFuse) while low-frequency logging still lands on disk immediately:

  • If the gap since the previous log() call is >= buffer_interval (default 1.0s), the call is considered low-frequency and is written straight through.
  • Otherwise records are batched in memory and flushed once buffer_size (default 50) records accumulate.
  • A background timer flushes records that have been buffered for more than max_buffer_seconds (default 5.0s), so a burst that suddenly stops is never stranded in memory. finish() and the atexit hook flush any remainder.

Set buffer_interval=None to disable the frequency check, or max_buffer_seconds=None to disable the background timer. Tune them via backend_kwargs:

et.init(
    project="my_project",
    name="my_experiment",
    backends=["jsonl"],
    backend_kwargs={
        "jsonl": {"buffer_size": 200, "buffer_interval": 0.5, "max_buffer_seconds": 10},
    },
)

Download files

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

Source Distribution

expr_tracker-0.1.8.tar.gz (80.5 kB view details)

Uploaded Source

Built Distribution

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

expr_tracker-0.1.8-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file expr_tracker-0.1.8.tar.gz.

File metadata

  • Download URL: expr_tracker-0.1.8.tar.gz
  • Upload date:
  • Size: 80.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for expr_tracker-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ba2ff8e2836f2798b829b779279f93dd4e4346e7deb5246e772f131a68df62ac
MD5 98e708a0bd27d897a42199df0682c8c6
BLAKE2b-256 c6c241957ec73a16531ca974bb35d7b5fa0d3b740d73664a180e6f599a8f3ee4

See more details on using hashes here.

Provenance

The following attestation bundles were made for expr_tracker-0.1.8.tar.gz:

Publisher: release.yaml on HSPK/expr_tracker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file expr_tracker-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: expr_tracker-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for expr_tracker-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1734acf1995ce8d565e3177dae7a1173696ebc1b020a63d8589956d5ee54f0
MD5 6a5b44f605b4c9f601fb1000d00086a6
BLAKE2b-256 1e4691b1f08a47775d89c50d88eaf06f093e2734f3286f8163f2b713632ea850

See more details on using hashes here.

Provenance

The following attestation bundles were made for expr_tracker-0.1.8-py3-none-any.whl:

Publisher: release.yaml on HSPK/expr_tracker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.1

2 files

0.3.0

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.8 This release

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page