Metadata-Version: 2.1
Name: vsr53
Version: 0.1
Summary: Python Library to interface with Thyracont's VSR53 vacuum gauges
Project-URL: Download, https://github.com/lobis/vsr53/releases
Project-URL: Homepage, https://github.com/lobis/vsr53
Project-URL: Bug Tracker, https://github.com/lobis/vsr53/issues
Author-email: Oscar Martínez <omartinez@ifae.es>, Luis Antonio Obis Aparicio <luis@obis.dev>
Maintainer-email: Luis Antonio Obis Aparicio <luis@obis.dev>
License-Expression: CC0-1.0
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: pyserial
Provides-Extra: test
Requires-Dist: pre-commit; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Description-Content-Type: text/markdown

# [VSR53](https://github.com/lobis/vsr53)

[![Build and Test](https://github.com/lobis/vsr53/actions/workflows/build.yaml/badge.svg)](https://github.com/lobis/vsr53/actions/workflows/build.yaml)

This is a Python library to communicate with
[Thyracont](https://thyracont-vacuum.com/en/)'s VSR53USB pressure gauge. It
should also work with the VSR53DL model (over RS485) but I haven't tested it as
I don't have access to one.

This library is a fork of
[this repository](https://github.com/IFAEControl/pyvsr53dl). All credits go to
the original author.

The original library was designed for the RS485 protocol and does not work out
of the box for the USB version of this sensor, however, with some minor
modifications such as allowing the user to set the baudrate and updating the
default value (to 9600 instead of 115200) it works perfectly.

## Installation

```bash
pip install vsr53
```

## Usage

```python
from vsr53 import VSR53USB

port = "/dev/ttyUSB0" # replace with the device port of your gauge
with VSR53USB(port) as gauge:
    print(gauge.get_device_type())
    print(gauge.get_product_name())
    print(gauge.get_measurement_value())
```
