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())
Metadata
Release files for aiostd 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiostd-0.0.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiostd-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / aiostd-0.0.1.tar.gz
| Download URL | aiostd-0.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3386292c209b2f22f3a9919d11e34685cee74b35d1c36f79fd572c89eac1362b
|
|
BLAKE2b-256 checksum How to use checksums |
21244a257afacec66ebf0caad0fb285d3ad16a98e00452e4a71ed5f5d87fea86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.18
|
Release files / aiostd-0.0.1-py3-none-any.whl
| Download URL | aiostd-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca6eaa58f8ac0a1759f5cfe3f99d70447f06f287e3da7d3a5ad5dce5a056a395
|
|
BLAKE2b-256 checksum How to use checksums |
ef0382b2683fac57fb80377ef803769c62142431ee9ab5a376aed07d9ff087c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.18
|