polyscience
Python driver for Polyscience Advanced Digital Controller Circulating Baths.
Note: We've moved away from using these baths, opting instead for Huber. On top of the communication issues, these units were remarkably unreliable.
This was created to support older circulating baths (before touch screen models). These older devices have ethernet ports, but only support serial communication over UDP. This code attempts to handle the awkwardness of serial-over-UDP communication, providing a simple API to read and control the unit.
Installation
pip install polyscience
Usage
Command Line
Read the bath from any networked computer with:
polyscience [ip-address]
This provides methods to set temperature, pump speed, control, and others. See polyscience --help for more.
Python
For complex interaction, use this as part of a Python script.
from polyscience import CirculatingBath
bath = CirculatingBath('192.168.1.100')
print(bath.get_setpoint())
A common usage is to create an interactive web site. This driver blocks (my earlier async implementations were prone to overwhelming the bath), so put the bath i/o in its own thread.
Metadata
Release files for polyscience 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polyscience-0.1.16.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polyscience-0.1.16-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 16.8 kB
Release files / polyscience-0.1.16.tar.gz
| Download URL | polyscience-0.1.16.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d1937f5784118b0fb7ec9dc63c54f6f99e08a713b51a00948c24c37fe0db146
|
|
BLAKE2b-256 checksum How to use checksums |
ec274787a95e958d7e4e0d5954abe7bf5b878aa0b062a33f78ade89dbeb6af6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
|
Release files / polyscience-0.1.16-py2.py3-none-any.whl
| Download URL | polyscience-0.1.16-py2.py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4257c3ffc1de8e1ba1d7c4a54362e9e481cc82a0435e67b5720fee8891c20a7a
|
|
BLAKE2b-256 checksum How to use checksums |
2bbaee190a5a105c7df5887f9be62666f06c056c361a8db47e1dbfcebaa2991f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
|