Skip to main content

labnet

LabNet lets experiment programs anywhere on a lab network use instruments attached to other computers safely: one user at a time, through typed operations, with the instrument's own computer staying in charge of the hardware.

This package holds Central (users, the device directory, leases), the Lab PC runtime (serves instruments over gRPC), the client library, the driver tooling, and the labnet command. Instruments come from driver packages, such as labnet-sim; the web interface is labnet-control-center.

Install

Command For
pip install labnet Client computers: experiment scripts
pip install "labnet[lab-pc]" Lab PCs
pip install "labnet[central]" Central (add postgres for PostgreSQL)
pip install "labnet[certs]" The computer that issues the lab's certificates
pip install "labnet[driver-dev]" Writing a driver package (labnet driver build)

A whole simulated lab on one computer:

pip install "labnet[central,lab-pc]" labnet-sim labnet-control-center
labnet dev up

Use an instrument

from labnet import LabClient
from labnet_sim import SimulatedWavemeter

central = LabClient.from_env()               # reads LABNET_ENV_FILE
meter = SimulatedWavemeter(client=central)   # leases the first available wavemeter
try:
    print(meter.read_wavelength(), "nm")
finally:
    meter.close()                              # releases the lease
    central.close()

Documentation

https://mill0851.github.io/labnet/: the Quickstart, writing a driver, deploying a lab, and the API reference.

LabNet is MIT licensed. Source: https://github.com/mill0851/labnet.

Metadata

Release files for labnet 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for labnet 3.0.0
File Size Uploaded
labnet-3.0.0.tar.gz 158.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for labnet 3.0.0
File Interpreter ABI Platform
labnet-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 357.3 kB

Release files / labnet-3.0.0.tar.gz

Download URL labnet-3.0.0.tar.gz
Size 158.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aa13f02f6c3a94b9fb47da42f2965335eb23aea93cf62b504db18321148cb059
BLAKE2b-256 checksum
How to use checksums
6933586abed0abfd34fd21b2c7092c279261f94df7080a56ac8ee7ad4337ff61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

Release files / labnet-3.0.0-py3-none-any.whl

Download URL labnet-3.0.0-py3-none-any.whl
Size 198.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7d902a81900daeb97740206588b6c31d05d5006b24aee53babfe9dc4093d1fe
BLAKE2b-256 checksum
How to use checksums
f0d8da70edc435b889f4add99a46ad7d1e29c6cc05d63bac14618652b54aebf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release 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