A Python client library to talk with Brultech Devices over a serial connection
Project description
What is aiobrultech-serial?
This library talks to devices from Brultech Research over their serial port, using siobrultech-protocols to decode the data.
Installation
pip install aiobrultech-serial
Usage
from aiobrultech_serial import connect
async with connect("/dev/ttyUSB0") as connection:
async for packet in connection.packets():
print(f"{packet}")
Look at scripts/dump.py
for a fuller example.
API Calls
This library also supports getting and setting information on the attached device. It supports all of the API calls available in siobrultech-protocols.
Development
Setup
python3.10 -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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aiobrultech_serial-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27f365c09a11193448734c541512297f1f7598c19e65bd62da06f311caf2cd12 |
|
MD5 | b4e8ec2f5877d2a6fd9200b3ee27d190 |
|
BLAKE2b-256 | 7db670a9d249fdc59cafd370ee4b49bc7c76ee344f1da6eda44065c857e03285 |