Skip to main content

Okolab

This Python package provides control of the H401-T-CONTROLLER temperature controller from Okolab.

Installation

$ pip install okolab

# List available devices
$ python -m okolab

Usage

from okolab import OkolabDevice

device = OkolabDevice(address="COM3")
device = OkolabDevice(address="/dev/tty.usbmodem1101")
async with device:
  # Read temperature
  temp = await device.get_temperature1()
  temp = await device.get_temperature2()

  # Write temperature
  await device.set_temperature_setpoint1(37.0)
  await device.set_temperature_setpoint2(37.0)
# Read in parallel
await asyncio.gather(
  device.get_temperature1(),
  device.get_temperature2()
)
from okolab import OkolabDeviceConnectionError, OkolabDeviceSystemError

# Catching errors
try:
  temp = await device.get_temperature1()
except OkolabDeviceConnectionError:
  # The device has been disconnected
except OkolabDeviceSystemError:
  # The device has reported an error
for info in OkolabDevice.list():
  with info.create() as device:
    print(await device.get_serial_number())

Metadata

Release files for okolab 0.2.1

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

Source distribution (sdist)

Source distribution for okolab 0.2.1
File Size Uploaded Provenance Actions
okolab-0.2.1.tar.gz 5.0 kB Without provenance Details for okolab-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 10.8 kB

Release files / okolab-0.2.1.tar.gz

Download URL okolab-0.2.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
565d10cca910cb27edf7ee79fde5c420899ece2d9c8260d7e92eeb32db49d2f6
BLAKE2b-256 checksum
How to use checksums
d193408e421f59768d6c533666fc9473fadbbfe2a58fe38240a5fbcf073d0e43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / okolab-0.2.1-py3-none-any.whl

Download URL okolab-0.2.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3a9cc5b0e954b7d604578d908595d24955e087847d6995adc84cb6e2b937490
BLAKE2b-256 checksum
How to use checksums
f6b266cc3d204b267ae45e2172d299e6f5f9cf8af37b137202fa0ad161f5b23b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for okolab 0.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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