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

Uploaded Source

Built Distribution

USBSerial-1.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file USBSerial-1.1.0.tar.gz.

File metadata

  • Download URL: USBSerial-1.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for USBSerial-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e09e689b691ab92d29a1b79bbbf4b9ba1c5a66fdc68e1403d743fcac875e9a1d
MD5 6aea1004954377a95458f2e53d98f193
BLAKE2b-256 29b42743e8a57af9acaeb62502adc24c1480351fa64564a06b9da5f409ab5109

See more details on using hashes here.

File details

Details for the file USBSerial-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: USBSerial-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for USBSerial-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9670e7d44801ae85f2a2640f974ce25bc5447c7402df833718a67fde6328e744
MD5 5587505a4bc5aa18eec51440bb176f98
BLAKE2b-256 6b8b3e1399ff621824088b5b1095f72e139565cea6474a39e71be08117c22d3a

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