Pylabware
A Python 3 class for communication with serial devices such as hotplate stirrers, vacuum pumps etc.
Install / Use
/learn @croningp/PylabwareREADME
This is a simple Python 3 library to control the common range of the hardware found in the chemistry labs - hotplates, stirrers, rotary evaporators, vacuum pumps etc. using a common interface.
Features
- Wide range of supported hardware
- Supports both serial/RS-232 and Ethernet connection to the devices.
- Provides thread-safe parallel execution of several commands per device.
- Provides single interface per device type irrespective of a particular manufacturer.
- Simulation mode to test your code before executing it with real hardware.
- Easy addition of new devices.
Setup
Clone this repo to your PC and run pip install . from the repository folder.
Usage
>>> import PyLabware as pl
>>> pump = pl.C3000SyringePump(device_name="reagent_pump", port="COM7",
connection_mode="serial", address=None, switch_address=4)
>>> pump.connect()
>>> pump.initialize_device()
>>> pump.get_valve_position()
'I'
>>> pump.withdraw(200)
>>> pump.set_valve_position("O")
>>> pump.dispense(200)
...
License
This project is licensed under MIT license. © 2021 Cronin group
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

