Typed Python SDK and lab command-line client for the Labqoat platform
Actively maintained. Last release 4 weeks ago. A safe choice.
pip install labqoatlabqoat-python
Typed SDK and CLI for the Labqoat starter API. Distribution
labqoat, import labqoat, commands lab and labqoat.
Quick start
from labqoat.client import Client
with Client("http://127.0.0.1:4000", "local", "your-password") as client:
note = client.create_note("First", body="Hello")
page = client.list_notes(limit=20)
for item in client.iter_notes():
print(item.id, item.title)
The CLI defaults to production at https://app.labqoat.com, which uses a
publicly trusted certificate. Profiles saved with the old tunnel URL
(https://127.0.0.1:4043) should be updated, and SSL_CERT_FILE no longer needs
to point at the private installation CA. Log in:
lab auth login --username labqoat
lab status
lab run list
Work is grouped into projects: a named container that owns runs, datasets, dashboards and one research memory. Start in a working directory with:
lab project init my-benchmark
lab project current
init creates the project and pins it as [tool.labqoat] project = "my-benchmark"
in ./pyproject.toml, so every command run from there acts on it. --project NAME
and LABQOAT_PROJECT override the pin; without any of them the project named
default is used. run list, dataset list and dashboard list show the selected
project and take --all-projects; lab project move --to NAME --run ID (also
--app, --dashboard, --dataset) reorganizes existing work. The SDK stays
explicit: Client(..., project="my-benchmark") selects the project, and
labqoat.projects.project_selection.ProjectSelection.resolve().name applies the
CLI's lookup order in a script.
Use an explicit override for a local instance:
lab --base-url http://127.0.0.1:4000 status
Saved profiles retain their configured endpoints; --base-url overrides the
selected profile. Credentials remain scoped to that endpoint. The SDK takes an
explicit URL, as in the local example above.
Credentials use HTTP Basic on every request. Plain HTTP is accepted only for explicit loopback destinations.
Every command (, , , and ) accepts to print the submission response and then stream durable run events, just like the corresponding command. Evaluations watch their primary run. Without the flag, submission returns immediately.