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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file trio-serial-windows-0.1.1.tar.gz.

File metadata

  • Download URL: trio-serial-windows-0.1.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for trio-serial-windows-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1b731b409fc89eda4b2b166fc74e49a24502432451b49c1c22aca909d0e5498a
MD5 ef514605ab243fad391c4d47252eff45
BLAKE2b-256 22745ecc1dd24cf91c38c5245a66d79b16251199c59a0f8089458cbc019f886c

See more details on using hashes here.

File details

Details for the file trio_serial_windows-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trio_serial_windows-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0072e470da7511d9625cf1d7435ddc9b72e12853a73e1bc1c8896355fe0074c
MD5 07dd30ff973b318f06a67760688ef6ab
BLAKE2b-256 912bfe22481dc2426361877ab86c3a9977a040e93e4880eb6f22191d4426a741

See more details on using hashes here.

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