aiostd


Nameaiostd JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryA simple library for asynchronous communication with standard I/O.
upload_time2024-06-18 19:31:20
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords asyncio stdin stdout
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```python
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())
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aiostd",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "asyncio, stdin, stdout",
    "author": null,
    "author_email": "Ali Aliyev <ali@aliev.me>",
    "download_url": "https://files.pythonhosted.org/packages/21/24/4a257afacec66ebf0caad0fb285d3ad16a98e00452e4a71ed5f5d87fea86/aiostd-0.0.1.tar.gz",
    "platform": null,
    "description": "# aiostd\n\nA simple library for asynchronous communication with standard I/O\n\nThe 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.\n\n## Installation\n\n```\npip install -U aiostd\n```\n\n## Usage\n\n```python\nfrom aiostd import open_io_stream\nimport sys\n\nasync def main():\n    reader, writer = await open_io_stream(sys.stdin, sys.stdout)\n\n    async for line in reader:\n        writer.write(line)\n        await writer.drain()\n\nasyncio.run(main())\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple library for asynchronous communication with standard I/O.",
    "version": "0.0.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/aliev/aiostd/issues",
        "Homepage": "https://github.com/aliev/aiostd"
    },
    "split_keywords": [
        "asyncio",
        " stdin",
        " stdout"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef0382b2683fac57fb80377ef803769c62142431ee9ab5a376aed07d9ff087c1",
                "md5": "07032e3c2088768d005ea258663d6bb5",
                "sha256": "ca6eaa58f8ac0a1759f5cfe3f99d70447f06f287e3da7d3a5ad5dce5a056a395"
            },
            "downloads": -1,
            "filename": "aiostd-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07032e3c2088768d005ea258663d6bb5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3461,
            "upload_time": "2024-06-18T19:31:10",
            "upload_time_iso_8601": "2024-06-18T19:31:10.951292Z",
            "url": "https://files.pythonhosted.org/packages/ef/03/82b2683fac57fb80377ef803769c62142431ee9ab5a376aed07d9ff087c1/aiostd-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21244a257afacec66ebf0caad0fb285d3ad16a98e00452e4a71ed5f5d87fea86",
                "md5": "ca5f0fe84bddd890e49c6beed926303e",
                "sha256": "3386292c209b2f22f3a9919d11e34685cee74b35d1c36f79fd572c89eac1362b"
            },
            "downloads": -1,
            "filename": "aiostd-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ca5f0fe84bddd890e49c6beed926303e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3502,
            "upload_time": "2024-06-18T19:31:20",
            "upload_time_iso_8601": "2024-06-18T19:31:20.769580Z",
            "url": "https://files.pythonhosted.org/packages/21/24/4a257afacec66ebf0caad0fb285d3ad16a98e00452e4a71ed5f5d87fea86/aiostd-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-18 19:31:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aliev",
    "github_project": "aiostd",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aiostd"
}
        
Elapsed time: 2.83033s