Skip to main content

A Python client library to talk with Brultech Devices over a serial connection

Project description

Lint Build PyPI Supported Python Versions

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiobrultech-serial-0.9.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

aiobrultech_serial-0.9.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file aiobrultech-serial-0.9.0.tar.gz.

File metadata

  • Download URL: aiobrultech-serial-0.9.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.7

File hashes

Hashes for aiobrultech-serial-0.9.0.tar.gz
Algorithm Hash digest
SHA256 35ee8894c4071cbbd0f6b776dcd37811dab8eb3ff6045c649cd2373d4e6b167c
MD5 2df5d4f13041f90abd7deb873c7bf648
BLAKE2b-256 8514afbd6526f5d649e7ebc0e4da5f30a847ed94cfe70fde2fe0c1d3c493cc95

See more details on using hashes here.

File details

Details for the file aiobrultech_serial-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiobrultech_serial-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71c555c0f162d9a97f7f9b6275ce5871e6919d1c2bc1aa0445f416743ddac5fc
MD5 0ac23e9d19595c6fa0766d33cb98653d
BLAKE2b-256 cfb89058281d65336d2c19c4d92cc4b3e9e5812320b869abbc3ca73d89af0f93

See more details on using hashes here.

Supported by

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