aiobrultech-serial-0.6.0
توضیحات
A Python client library to talk with Brultech Devices over a serial connection
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aiobrultech-serial-0.6.0 |
| نام | aiobrultech-serial |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Shawn Wilsher |
| ایمیل نویسنده | me@shawnwilsher.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aiobrultech-serial/ |
| مجوز | - |


# 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
async with connect("/dev/ttyUSB0") as connection:
async for packet in connection.packets():
print(f"{packet}")
```
Look at [`scripts/dump.py`](https://github.com/sdwilsh/aiobrultech-serial/blob/main/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](https://github.com/sdwilsh/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`.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.5 | pyserial |
| ==0.6 | pyserial-asyncio |
| ==0.7.0 | siobrultech-protocols |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4,>=3.8 | Python |
نحوه نصب
نصب پکیج whl aiobrultech-serial-0.6.0:
pip install aiobrultech-serial-0.6.0.whl
نصب پکیج tar.gz aiobrultech-serial-0.6.0:
pip install aiobrultech-serial-0.6.0.tar.gz