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.7.tar.gz (77.7 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.7-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: expr_tracker-0.1.7.tar.gz
  • Upload date:
  • Size: 77.7 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.7.tar.gz
Algorithm Hash digest
SHA256 94464e52d04b04500b69cf8e6724de1fbfc6f73e2a89694ea2330917292a3619
MD5 dbb52c0ce973d0a06d5dc8aa54ac207e
BLAKE2b-256 c4cb2518161d4c7e5e8b308c972eae49a0b56e7809831b2d7b6ceaa07d63d298

See more details on using hashes here.

Provenance

The following attestation bundles were made for expr_tracker-0.1.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: expr_tracker-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a1e5b991f2b9c6f49d7aafa5aecd743acaa1b5defab7d09b74a7d0ab9a556561
MD5 81419a55e5576b36b3f8db066869384e
BLAKE2b-256 53a3da1a83188f89f88268c79ee52bba3a5eb26095f88e25d26c0c9fd4d0347c

See more details on using hashes here.

Provenance

The following attestation bundles were made for expr_tracker-0.1.7-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

0.1.8

2 files

This release

0.1.7 This release

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