aiopen


Nameaiopen JSON
Version 0.6.1 PyPI version JSON
download
home_pagehttps://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/aiopen
SummaryAsync file io
upload_time2024-02-01 22:17:29
maintainer
docs_urlNone
authorjesse
requires_python>=3.8,<4.0
licenseMIT
keywords anyio fs aiopen async dgpy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <a href="https://github.com/dynamic-graphics-inc/dgpy-libs">
<img align="right" src="https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true" alt="drawing" height="120" width="300"/>
</a>

# aiopen

[![Wheel](https://img.shields.io/pypi/wheel/aiopen.svg)](https://img.shields.io/pypi/wheel/aiopen.svg)
[![Version](https://img.shields.io/pypi/v/aiopen.svg)](https://img.shields.io/pypi/v/aiopen.svg)
[![py_versions](https://img.shields.io/pypi/pyversions/aiopen.svg)](https://img.shields.io/pypi/pyversions/aiopen.svg)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

**Install:** `pip install aiopen`

Async-open

**Why not use aiofiles?**

- Wanted more type annotations
- aiofiles uses ye ole `@coroutine` decorator -- aiopen uses python3.6+ `async/await`
- aiopen is a callable module, so you can do:
  - `import aiopen`
  - `async with aiopen('afile.txt', 'w') as f: await f.write('some text!')`
  - `async with aiopen('afile.txt', 'r') as f: content = await f.read()`

(Big shouts out to the aiofiles people, aiopen is entirely based off of aiofiles)

## Usage:

Just import it! The module is also callable!

```python
import aiopen

async with aiopen('afile.txt', 'w') as f:
    await f.write('some text!')

async with aiopen('afile.txt', 'r') as f:
    content = await f.read()
    print(content)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/aiopen",
    "name": "aiopen",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "anyio,fs,aiopen,async,dgpy",
    "author": "jesse",
    "author_email": "jesse@dgi.com",
    "download_url": "https://files.pythonhosted.org/packages/28/b4/83b6c55fd862109c01a68db8641105ef16dda7cd54582ba8ced4f36002a6/aiopen-0.6.1.tar.gz",
    "platform": null,
    "description": "<a href=\"https://github.com/dynamic-graphics-inc/dgpy-libs\">\n<img align=\"right\" src=\"https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true\" alt=\"drawing\" height=\"120\" width=\"300\"/>\n</a>\n\n# aiopen\n\n[![Wheel](https://img.shields.io/pypi/wheel/aiopen.svg)](https://img.shields.io/pypi/wheel/aiopen.svg)\n[![Version](https://img.shields.io/pypi/v/aiopen.svg)](https://img.shields.io/pypi/v/aiopen.svg)\n[![py_versions](https://img.shields.io/pypi/pyversions/aiopen.svg)](https://img.shields.io/pypi/pyversions/aiopen.svg)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n**Install:** `pip install aiopen`\n\nAsync-open\n\n**Why not use aiofiles?**\n\n- Wanted more type annotations\n- aiofiles uses ye ole `@coroutine` decorator -- aiopen uses python3.6+ `async/await`\n- aiopen is a callable module, so you can do:\n  - `import aiopen`\n  - `async with aiopen('afile.txt', 'w') as f: await f.write('some text!')`\n  - `async with aiopen('afile.txt', 'r') as f: content = await f.read()`\n\n(Big shouts out to the aiofiles people, aiopen is entirely based off of aiofiles)\n\n## Usage:\n\nJust import it! The module is also callable!\n\n```python\nimport aiopen\n\nasync with aiopen('afile.txt', 'w') as f:\n    await f.write('some text!')\n\nasync with aiopen('afile.txt', 'r') as f:\n    content = await f.read()\n    print(content)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Async file io",
    "version": "0.6.1",
    "project_urls": {
        "Homepage": "https://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/aiopen",
        "Repository": "https://github.com/dynamic-graphics-inc/dgpy-libs"
    },
    "split_keywords": [
        "anyio",
        "fs",
        "aiopen",
        "async",
        "dgpy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df5d2ae43db33ec5c190d98303a88593726e78b2911d0a4ecf3bac26637412b7",
                "md5": "69a96e5a1da1ddfb1ca4ed12180bc55f",
                "sha256": "8427dc5d6d82ace0bdf8fd1ed99770708931f337e29f8c770cbc9a17d42ab78c"
            },
            "downloads": -1,
            "filename": "aiopen-0.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "69a96e5a1da1ddfb1ca4ed12180bc55f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 7825,
            "upload_time": "2024-02-01T22:17:06",
            "upload_time_iso_8601": "2024-02-01T22:17:06.656543Z",
            "url": "https://files.pythonhosted.org/packages/df/5d/2ae43db33ec5c190d98303a88593726e78b2911d0a4ecf3bac26637412b7/aiopen-0.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28b483b6c55fd862109c01a68db8641105ef16dda7cd54582ba8ced4f36002a6",
                "md5": "5dc7de30ffb61554d2c754a0f8baac51",
                "sha256": "1cf3a60ee318e935076db29e935c5073a1132695b3409b2ba8f31eff05ce7f1a"
            },
            "downloads": -1,
            "filename": "aiopen-0.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5dc7de30ffb61554d2c754a0f8baac51",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 6673,
            "upload_time": "2024-02-01T22:17:29",
            "upload_time_iso_8601": "2024-02-01T22:17:29.511358Z",
            "url": "https://files.pythonhosted.org/packages/28/b4/83b6c55fd862109c01a68db8641105ef16dda7cd54582ba8ced4f36002a6/aiopen-0.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-01 22:17:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dynamic-graphics-inc",
    "github_project": "dgpy-libs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aiopen"
}
        
Elapsed time: 0.23456s