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/*
Release files for USBSerial 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| USBSerial-1.1.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| USBSerial-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / USBSerial-1.1.0.tar.gz
| Download URL | USBSerial-1.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e09e689b691ab92d29a1b79bbbf4b9ba1c5a66fdc68e1403d743fcac875e9a1d
|
|
BLAKE2b-256 checksum How to use checksums |
29b42743e8a57af9acaeb62502adc24c1480351fa64564a06b9da5f409ab5109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / USBSerial-1.1.0-py3-none-any.whl
| Download URL | USBSerial-1.1.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9670e7d44801ae85f2a2640f974ce25bc5447c7402df833718a67fde6328e744
|
|
BLAKE2b-256 checksum How to use checksums |
6b8b3e1399ff621824088b5b1095f72e139565cea6474a39e71be08117c22d3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|