https://github.com/kkimj/usbserial_python-library
USBSerial_Python-library
https://github.com/kkimj/usbserial_python-library
python-library python3 usbserial
Last synced: about 1 year ago
JSON representation
USBSerial_Python-library
- Host: GitHub
- URL: https://github.com/kkimj/usbserial_python-library
- Owner: KKimj
- License: gpl-3.0
- Created: 2021-03-22T15:01:47.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-24T09:58:39.000Z (about 5 years ago)
- Last Synced: 2025-03-08T21:05:37.871Z (over 1 year ago)
- Topics: python-library, python3, usbserial
- Language: Python
- Homepage: https://pypi.org/project/USBSerial/
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# USBSerial_Python-library
USBSerial_Python-library
https://pypi.org/project/USBSerial
## Getting Started
### Installation
```
$ pip install USBSerial
```
## Usage
### Import
```python
from usbserial import USBSerial
```
### Examples
```python
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/*
```