aiostd 0.0.1

Creator: railscoderz

Last updated:

0 purchases

aiostd 0.0.1 Image
aiostd 0.0.1 Images

Languages

Categories

Add to Cart

Description:

aiostd 0.0.1

aiostd
A simple library for asynchronous communication with standard I/O
The library employs asyncio's I/O multiplexing, which enables efficient I/O operations by monitoring multiple file descriptors simultaneously without the overhead of creating separate threads.
Installation
pip install -U aiostd

Usage
from aiostd import open_io_stream
import sys

async def main():
reader, writer = await open_io_stream(sys.stdin, sys.stdout)

async for line in reader:
writer.write(line)
await writer.drain()

asyncio.run(main())

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.