semvec/pypi-packages huggingface dataset:
pttydev 0.0.6
TTYDev - Pseudo TTY Device
License: MIT
Requires Python: >=3.8
Keywords: python threading pyserial websocket websocket-client micropython webrepl esp8266 esp32

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)


# PTTYDev - Pseudo TTY Device

PTTYDev provides a common interface and enhanced timeout and automatic reconnection handling.
Using a pttydev enables your code to read / write a serial device or websocket.

## Platform

Tested on ESP32, pyserial and MicroPython WebRepl

## Related project

[mpycntrl](https://github.com/kr-g/mpycntrl)


# What's new ?

Check
[`CHANGELOG`](https://github.com/kr-g/mpycntrl/blob/master/CHANGELOG.md)
for latest ongoing, or upcoming news


## Development status

Alpha state,

in case of unexpected behaviour change timeouts for your board


### Limitation

deprecated hint: 
there is a known bug with [WebREPL](https://github.com/micropython/micropython/issues/2497)


## Installation

pttydev can be installed with pip from here [pttydev](https://pypi.org/project/pttydev/)


## Sample Code

some sample code is under the pttydev directory on project homepage on github

[sample.py](https://github.com/kr-g/pttydev/blob/master/pttydev/sample.py)