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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for trio-serial-windows-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b731b409fc89eda4b2b166fc74e49a24502432451b49c1c22aca909d0e5498a |
|
MD5 | ef514605ab243fad391c4d47252eff45 |
|
BLAKE2b-256 | 22745ecc1dd24cf91c38c5245a66d79b16251199c59a0f8089458cbc019f886c |
Close
Hashes for trio_serial_windows-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0072e470da7511d9625cf1d7435ddc9b72e12853a73e1bc1c8896355fe0074c |
|
MD5 | 07dd30ff973b318f06a67760688ef6ab |
|
BLAKE2b-256 | 912bfe22481dc2426361877ab86c3a9977a040e93e4880eb6f22191d4426a741 |