Skip to main content

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 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.4.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baratron-0.4.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file baratron-0.4.0.tar.gz.

File metadata

  • Download URL: baratron-0.4.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for baratron-0.4.0.tar.gz
Algorithm Hash digest
SHA256 92904442310a4e443bf6f54ace7e9f7b8c7513accda3d28dcd41f13d3d6de53e
MD5 83e31db4253b8173e7d6d4b4751da2b3
BLAKE2b-256 18aca69c18500d911c02926e59639bc0e893e7c354959a637df6d8c4251ba25e

See more details on using hashes here.

File details

Details for the file baratron-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: baratron-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for baratron-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0fdc9e29184ed9e8cdb9494ff116686c9caafc50021d03d84aa8f519f9afbbb
MD5 072973297f67a07292893fb22164f906
BLAKE2b-256 10e788c52a81af82b5817f00e7d7efc0022be6e76be9f968682f563222a3d473

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page