Skip to main content

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

Project description

Lint Build

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.6.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

aiobrultech_serial-0.6.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiobrultech-serial-0.6.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for aiobrultech-serial-0.6.0.tar.gz
Algorithm Hash digest
SHA256 3091ebc3c4f3e838ab12d03a913c1412fd2ed8b80c8b999a94323987d5a5d7b7
MD5 2cd9ab5941dcd988574d15d3813989cc
BLAKE2b-256 c944353ce72af8cddc8ae3cc1991ba2c69f5dbaff83a3c418bdf31384458870e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for aiobrultech_serial-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60c081532e46dcf483ae5851ba9744c1bfccc696a5522bf3579c300b058b94e4
MD5 8a76bacbccaf08b1f703595c4c84a7c9
BLAKE2b-256 6ccd7179399b427835827c6d87462e672229eeea514483508a391cf7d26d48fb

See more details on using hashes here.

Provenance

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