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.0.tar.gz
(13.8 kB
view hashes)
Built Distribution
Close
Hashes for trio-serial-windows-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 038f9327f86d518aa77df8aa9da6fef27e88736cd3cd1141b7cfd9574e3d18db |
|
MD5 | 835d5606b1478ee9e3bbca74dceb2a80 |
|
BLAKE2b-256 | d26865473650c2f4e583e16f515acd0463723a2c7f534e8d1c87fa24cb64a93f |
Close
Hashes for trio_serial_windows-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0d8a0b218f8c423222f493c6d8adce2bcbcb939af56033c5c729a29fea8155 |
|
MD5 | e2fcb1a75cce4be20a0996ceb7d8b79a |
|
BLAKE2b-256 | 9a9ab1a6d6b68a98762de92cba4dc1109b4f7244b694633bd22331f2a08a0d55 |