HC-USBSerial Python library via Serial protocol, using pySerial library as API
Project description
USBSerial_Python-library
USBSerial_Python-library
https://pypi.org/project/USBSerial
Getting Started
Installation
$ pip install USBSerial
Usage
Import
from usbserial import USBSerial
Examples
from usbserial import USBSerial
device = USBSerial(port = 'ttyUSB0', baudrate = 115200, timeout = 3, open = True)
print(device.readline())
print(device.read(size = 1))
Dev
Build
$ python3 -m build
Local test
$ pip install -e .
Build and Local test
$ python3 -m build && pip install -e . && python
Release
$ python -m twine upload dist/*
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
USBSerial-1.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
USBSerial-1.0.1-py3-none-any.whl
(14.8 kB
view hashes)
Close
Hashes for USBSerial-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a51824b7a2e06026a15de41fac305f8bb8212ed6029c9d8e65d77b100e502376 |
|
MD5 | 41c47bade2a4211616d63609e3418683 |
|
BLAKE2b-256 | 826a7230a679dc36f5d5bcc4a66de60a54b3a05a6417cc714ec8677030a18f7d |