Getting Started¶
This page covers the current installation and smoke-test flow for trainpit.
Install¶
Install the latest published release:
In a uv-managed project:
Or install into the active virtual environment with uv:
For local development, clone the repository and install the locked dependencies:
For development, include the development dependency group:
API Check¶
Verify that the package exposes the train tracker API:
from trainpit import train
with train(total_epochs=1, total_steps=1, label="smoke-test") as progress:
progress.epoch(1)
progress.step(1, loss=0.5, metrics={"acc": 1.0}, learning_rate=0.0001)
Continue with Tutorial for a fuller example.
Build Artifacts¶
Build the source distribution and wheel:
The CI also installs the built wheel into a temporary environment to catch packaging issues that source-tree tests may miss.