Aioserial
lastmod 2026-11-10created 2022-08-103 edits
aioserial is a Python library that wraps pySerial so that serial ports can be read and written with await in asyncio. It provides AioSerial, which inherits from pySerial's Serial class, staying compatible with existing code while adding asynchronous methods such as read_async, readline_async, and write_async. Blocking I/O runs internally in a thread pool.
An asynchronous serial port library of Python