Skip to main content

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


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.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

USBSerial-1.0.0-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

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