Skip to main content

Serial Port support for python-trio on Windows

Project description

trio-serial-windows

Implements a serial port with a Trio Stream interface on Windows. See trio-serial for the equivalent functionality on Linux and MacOS.

Example usage (assuming a looped back serial connection):

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trio-serial-windows-0.1.1.tar.gz (13.9 kB view hashes)

Uploaded Source

Built Distribution

trio_serial_windows-0.1.1-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page