Lightweight experiment tracking backed by SQLite
Project description
gsql-track
Lightweight experiment tracking backed by SQLite. Zero dependencies beyond the Python standard library.
Install
pip install gsql-track
Quick Start
from gsql_track import GsqlTrack
t = GsqlTrack("my-experiment")
run = t.start_run("baseline")
run.log_params({"lr": 0.001, "bs": 64})
for step in range(100):
run.log(step=step, loss=loss, acc=acc)
run.finish()
t.close()
Log Predictions (for mistake analysis)
run.log_predictions([
{"id": "e1", "pred": "A", "label": "A", "conf": 0.95, "text": "..."},
{"id": "e2", "pred": "B", "label": "A", "conf": 0.60, "text": "..."},
])
Web Dashboard
View results in the browser with the companion Go CLI:
gsql track serve
Bulk / Async Loading (tune & bench results)
Load results after all runs finish — useful for distributed or async workflows:
from gsql_track import GsqlTrack
t = GsqlTrack("bench/weak_labels")
# Single-step results (final metrics only)
for result in all_results:
t.log_completed_run(
f"{result.model}/{result.task}/seed_{result.seed}",
params={"lr": result.lr, "bs": result.bs},
metrics={"acc": result.acc, "f1": result.f1},
)
# Or multi-step (full training curves)
t.log_completed_run("bert/sst2/seed_0", metrics=[
{"step": 0, "loss": 2.3, "acc": 0.1},
{"step": 100, "loss": 0.5, "acc": 0.8},
{"step": 200, "loss": 0.1, "acc": 0.93},
])
t.close()
Wrapper API
Wrap an existing tracker class to automatically log to gsql:
from gsql_track import tracked
tracker = tracked(MyTracker(config), experiment="mnist")
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 gsql_track-0.1.2.tar.gz.
File metadata
- Download URL: gsql_track-0.1.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79a7a92702d5de8cd7231b0d30195a7f7f6c3b8b050d0cde943594ea0599e9a2
|
|
| MD5 |
66a0d28a970d0ee618bb430b7aff5aab
|
|
| BLAKE2b-256 |
abd5a2b4dee9f98774f07df73ef674022d01edec28423d2127b8140c32659553
|
File details
Details for the file gsql_track-0.1.2-py3-none-any.whl.
File metadata
- Download URL: gsql_track-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9452d8d206d5d2a7746e7dc44d7ccae976d00c25e8551567fd73f798fe6beff2
|
|
| MD5 |
fa1f57dba3eba03947e0b40053b41bd4
|
|
| BLAKE2b-256 |
67aee65540fa323e5ffc2e9c5bfef40378965062aace658f185ce599b6c19878
|