Metadata-Version: 2.1
Name: trio-serial-windows
Version: 0.1.1
Summary: Serial Port support for python-trio on Windows
Project-URL: Homepage, https://github.com/clint-lawrence/trio-serial-windows
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: trio-serial
Requires-Dist: trio

# trio-serial-windows

Implements a serial port with a [Trio](https://trio.readthedocs.io/) `Stream` interface on Windows.
See [trio-serial](https://pypi.org/project/trio-serial/) for the equivalent functionality on Linux and MacOS.

Example usage (assuming a looped back serial connection):
```python
import trio
import trio_serial_windows


async def main():
    async with trio_serial_windows.SerialStream("COM5", baudrate=115200) as port:
        await port.send_all(b"Hello, World!")
        await trio.sleep(0.2)
        print(await port.receive_some())

trio.run(main)
```
