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())
Metadata
Release files for baratron 0.5.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 | Provenance | Actions |
|---|---|---|---|---|
| baratron-0.5.0.tar.gz | 15.5 kB | Without provenance | Details for baratron-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| baratron-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for baratron-0.5.0-py3-none-any.whl |
Total release size: 31.1 kB
Release files / baratron-0.5.0.tar.gz
| Download URL | baratron-0.5.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
976838fc7500fd2d0fa2949b7adfb854faa0183bc610e3e147c5534f3ad65fea
|
|
BLAKE2b-256 checksum How to use checksums |
8fca03671f47dfbcc5592d4a94c8ad9c6ce21a91f28aad4dbeb66ee50fb4cf88
|
| 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.5.0-py3-none-any.whl
| Download URL | baratron-0.5.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d6095fa38d4bbdc9488db30c95f78f74a7cf4db3cc05a9749bbf86cd59c86e1
|
|
BLAKE2b-256 checksum How to use checksums |
edf38d3b72b47dbc6c40a17d0cbaa07ce4fa0b6cdc20539912236c36ca925360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for baratron 0.5.0
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.