Skip to main content

lab_devices

CI PyPI version

Async Python library to discover and manage lab devices — peristaltic pumps, distribution valves, and densitometers — over the SerialHop / lab-bridge API.

Install

pip install bioexperiment-lab-devices    # import as: import lab_devices

For development (runtime + dev deps):

poetry install --all-extras
# or, without Poetry:
pip install -e ".[dev]"

Core usage (host + port)

import asyncio
from lab_devices import LabClient

async def main():
    async with LabClient("chisel", 8089) as lab:
        pump = lab.pump(1)
        job = await pump.dispense(volume_ml=10, speed_ml_min=3.0)
        result = await job.result()
        print(result.dispensed_ml)

asyncio.run(main())

Server-only discovery (inside labnet)

from lab_devices.discovery import LabRegistry

async with LabRegistry() as reg:            # LAB_DEVICES_DISCOVERY_URL overrides the endpoint
    print(await reg.list_labs())
    lab = await reg.connect("khamit_desktop")
    async with lab:
        await lab.densitometer(1).measure()

Discovery uses the internal, unauthenticated roster endpoint and needs no token. It only works from inside the lab-bridge network.

Development

poetry run pytest        # hermetic; no hardware needed
poetry run mypy
poetry run ruff check .

Metadata

Release files for bioexperiment-lab-devices 0.6.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 bioexperiment-lab-devices 0.6.0
File Size Uploaded Provenance Actions
bioexperiment_lab_devices-0.6.0.tar.gz 67.0 kB With provenance Details for bioexperiment_lab_devices-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bioexperiment-lab-devices 0.6.0
File Interpreter ABI Platform Actions
bioexperiment_lab_devices-0.6.0-py3-none-any.whl Python 3 none any Details for bioexperiment_lab_devices-0.6.0-py3-none-any.whl

Total release size: 151.9 kB

Release files / bioexperiment_lab_devices-0.6.0.tar.gz

Download URL bioexperiment_lab_devices-0.6.0.tar.gz
Size 67.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c28504e8988d02f3335d88296f60c772a6c8b0dcb3030296659cf7609feb68ab
BLAKE2b-256 checksum
How to use checksums
3cb9bd2403efd5794505dda967d6284a3ad1d708a829724fef9a09851d3190c1
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 16, 2026.

Transparency log

Release files / bioexperiment_lab_devices-0.6.0-py3-none-any.whl

Download URL bioexperiment_lab_devices-0.6.0-py3-none-any.whl
Size 84.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e87e4bbb05e44ef31f0662e295c0765ef1b31d6d4c90dcb0487b582437ff29f5
BLAKE2b-256 checksum
How to use checksums
98d49b166e2d71a04e98c5e34d2561ffd545efbd2db2e7b6b03152e7d4f0a807
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 16, 2026.

Transparency log

Security for bioexperiment-lab-devices 0.6.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bioexperiment_lab_devices-0.6.0.tar.gz

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 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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