lab-link Python
Starlette/Pydantic backend runtime and Python sync client for lab-link.
Bind a reactive state model, expose a WebSocket sync endpoint, run commands
with hardware side effects, broadcast versioned JSON Patch updates, or control
a lab-link server from Python.
uv add lab-link
from lab_link import LabSync, ReactiveModel
class AppState(ReactiveModel):
voltage: float = 0.0
sync = LabSync()
state = sync.bind_state(AppState())
@sync.command
def set_voltage(value: float):
state.voltage = round(value, 3) # validated, batched, broadcast
app = sync.create_app()
Persistent remote access is available through LanPassphraseAuth and
SQLiteAuthStore, including first-run setup, remembered devices, one-time
invitations, session revocation, and scoped API tokens.
from lab_link import LabLinkClient
with LabLinkClient("ws://127.0.0.1:8000/sync/ws", api_token=token) as sync:
snapshot = sync.snapshot()
ack = sync.send_command("set_voltage", {"value": 1.2})
Full docs: https://sansseriff.github.io/lab-link/
Metadata
Release files for lab-link 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lab_link-0.5.0.tar.gz | 29.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lab_link-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.7 kB
Release files / lab_link-0.5.0.tar.gz
| Download URL | lab_link-0.5.0.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e12df10e6d0de0f4c07cef498cb52cd1ea0975d256c6be537a736ede9e13b21
|
|
BLAKE2b-256 checksum How to use checksums |
ae11ab5119425614de9b8db615a7645f6b38e739d02dabefe32ae079351b2616
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logRelease files / lab_link-0.5.0-py3-none-any.whl
| Download URL | lab_link-0.5.0-py3-none-any.whl |
|---|---|
| Size | 34.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35dc4e790b7ad9e1e7687528c199679db53fb09c129e8db0f2784434f40f85a3
|
|
BLAKE2b-256 checksum How to use checksums |
590824cbb35796730034d45da3e83fa8db6873f1e3661614b654c0541f38447e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency log