Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkimj/usbserial_python-library

USBSerial_Python-library
https://github.com/kkimj/usbserial_python-library

python-library python3 usbserial

Last synced: 10 days ago
JSON representation

USBSerial_Python-library

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/*
```