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.11 -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
File details
Details for the file aiobrultech-serial-0.8.0.tar.gz
.
File metadata
- Download URL: aiobrultech-serial-0.8.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d235b8e130d0a4098b985f900df46d81eb8068ebb97d81c0ee5ef0c4d846245 |
|
MD5 | b9319d74fde09fd81591932fd9df6437 |
|
BLAKE2b-256 | 1897007674f3b024e18270c3590a756245f84df4cd0d56aae1ec4d76df029193 |
Provenance
File details
Details for the file aiobrultech_serial-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: aiobrultech_serial-0.8.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7be00acf60fc0567198afe768df233ba75a967000e4628f3d4bbd94ba136b4d |
|
MD5 | a44fb3689589b44b69b800c32c96799f |
|
BLAKE2b-256 | 69abe607c505e30970f5b322bfc65a604d593886547a54da045836d784f12ab7 |