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 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())
Release files for baratron 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| baratron-0.4.0.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baratron-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.9 kB
Release files / baratron-0.4.0.tar.gz
| Download URL | baratron-0.4.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92904442310a4e443bf6f54ace7e9f7b8c7513accda3d28dcd41f13d3d6de53e
|
|
BLAKE2b-256 checksum How to use checksums |
18aca69c18500d911c02926e59639bc0e893e7c354959a637df6d8c4251ba25e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / baratron-0.4.0-py3-none-any.whl
| Download URL | baratron-0.4.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0fdc9e29184ed9e8cdb9494ff116686c9caafc50021d03d84aa8f519f9afbbb
|
|
BLAKE2b-256 checksum How to use checksums |
10e788c52a81af82b5817f00e7d7efc0022be6e76be9f968682f563222a3d473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|