Python driver for MKS eBaratron capacitance manometers.
Project description
baratron
Python driver and command line tool for ToolWeb-enabled MKS eBaratron capacitance manometers.
Installation
pip install baratron
If you want to use the older python2/tornado implementation, use pip install baratron==0.1.2
.
Usage
Command Line
To test your connection and stream real-time data, use the command-line interface. You can read the device with:
$ baratron 192.168.1.100
{
"drift": 0.00164,
"full-scale pressure": 1000.0,
"led color": "green",
"pressure": 3.78864,
"pressure units": "torr",
"run hours": 17517.763055555555,
"system status": "e-Baratron Zeroing Recommended",
"wait hours": 0.0
}
Python
This uses Python ≥3.5's async/await syntax to asynchronously communicate with the device. For example:
import asyncio
import baratron
async def get():
async with baratron.CapacitanceManometer('the-baratron-ip-address') as sensor:
print(await sensor.get())
asyncio.run(get())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
baratron-0.3.1.tar.gz
(11.2 kB
view details)
Built Distribution
File details
Details for the file baratron-0.3.1.tar.gz
.
File metadata
- Download URL: baratron-0.3.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20c1a251c486f33cfa378bfaa60ba992a8129af699d1665f923d644c48c6828 |
|
MD5 | 7fa62a6b8ddf96f2eb0bc5c004fb6a0e |
|
BLAKE2b-256 | caa5ef90a8145803cd2ffcb568d2ce9b3c6868c1b383de63adde0d18872eab0e |
File details
Details for the file baratron-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: baratron-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b05f27d84490247926b86dacb27184a0255f7178141c44498d012164e8522a |
|
MD5 | 54a94e1ba47b3167edeb9c346472e4eb |
|
BLAKE2b-256 | bcb9c66ca1e5c0ed34104d386d62f385ea5681f19bad61c8926a1c05176dc1ba |