Metadata-Version: 2.1
Name: aiobrultech-serial
Version: 0.1.0
Summary: A Python client library to talk with Brultech Devices over a serial connection
Home-page: UNKNOWN
Author: Shawn Wilsher
Author-email: me@shawnwilsher.com
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/sdwilsh/aiobrultech-serial/issues
Project-URL: Release Notes, https://github.com/sdwilsh/aiobrultech-serial/releases/
Project-URL: Source, https://github.com/sdwilsh/aiobrultech-serial
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: <4,>=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

![Lint](https://github.com/sdwilsh/aiobrultech-serial/workflows/Lint/badge.svg)
![Build](https://github.com/sdwilsh/aiobrultech-serial/workflows/Build/badge.svg)

# What is aiobrultech-serial?

This library talks to devices from [Brultech Research](https://www.brultech.com/)
over their serial port, using
[siobrultech-protocols](https://github.com/sdwilsh/siobrultech-protocols) to
decode the data.

## Installation

```
pip install aiobrultech-serial
```

## Usage

```python
from aiobrultech_serial import connect
from siobrultech_protocols.gem.packets import Packet


async def handler(packet: Packet) -> None:
    print("{}".format(packet))

connect(handler, port)
```

Look at [`scripts/dump.py`](https://github.com/sdwilsh/aiobrultech-serial/blob/main/scripts/dump.py)
for a fuller example.

## Development

### Setup

```
python3.9 -m venv .venv
source .venv/bin/activate

# Install Requirements
pip install -r requirements.txt

# Install Dev Requirements
pip install -r requirements-dev.txt

# One-Time Install of Commit Hooks
pre-commit install
```

### Testing

Tests are run with `pytest`.


