asyncio-contextmanager


Nameasyncio-contextmanager JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/sashgorokhov/asyncio-contextmanager
SummaryDecorator that turns async generator functions into async context managers.
upload_time2017-03-05 16:13:06
maintainerNone
docs_urlNone
authorsashgorokhov
requires_pythonNone
licenseMIT License
keywords python asyncio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            asyncio-contextmanager
======================

|PyPI version| |GitHub release| |Build Status| |codecov| |GitHub
license|

Decorator that turns async generator functions into async context
managers.

Installation
------------

Supported versions of python: **``3.6+``** (since async generators were
introduced in python 3.6)

.. code:: shell

    pip install asyncio-contextmanager

Usage
-----

Usage is straightforward and simple:

.. code:: python

    from aiocontext import async_contextmanager

    @async_contextmanager
    async def foo():
        yield 'Foo!'

.. |PyPI version| image:: https://badge.fury.io/py/asyncio-contextmanager.svg
   :target: https://badge.fury.io/py/asyncio-contextmanager
.. |GitHub release| image:: https://img.shields.io/github/release/sashgorokhov/asyncio-contextmanager.svg
   :target: https://github.com/sashgorokhov/asyncio-contextmanager
.. |Build Status| image:: https://travis-ci.org/sashgorokhov/asyncio-contextmanager.svg?branch=master
   :target: https://travis-ci.org/sashgorokhov/asyncio-contextmanager
.. |codecov| image:: https://codecov.io/gh/sashgorokhov/asyncio-contextmanager/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/sashgorokhov/asyncio-contextmanager
.. |GitHub license| image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: https://raw.githubusercontent.com/sashgorokhov/asyncio-contextmanager/master/LICENSE
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sashgorokhov/asyncio-contextmanager",
    "name": "asyncio-contextmanager",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python,asyncio",
    "author": "sashgorokhov",
    "author_email": "sashgorokhov@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/06/d5/fd2ad931e9397c599c81a6a5284d24fa1135d16aac2cc312773b8e8a3828/asyncio-contextmanager-1.0.1.tar.gz",
    "platform": "UNKNOWN",
    "description": "asyncio-contextmanager\n======================\n\n|PyPI version| |GitHub release| |Build Status| |codecov| |GitHub\nlicense|\n\nDecorator that turns async generator functions into async context\nmanagers.\n\nInstallation\n------------\n\nSupported versions of python: **``3.6+``** (since async generators were\nintroduced in python 3.6)\n\n.. code:: shell\n\n    pip install asyncio-contextmanager\n\nUsage\n-----\n\nUsage is straightforward and simple:\n\n.. code:: python\n\n    from aiocontext import async_contextmanager\n\n    @async_contextmanager\n    async def foo():\n        yield 'Foo!'\n\n.. |PyPI version| image:: https://badge.fury.io/py/asyncio-contextmanager.svg\n   :target: https://badge.fury.io/py/asyncio-contextmanager\n.. |GitHub release| image:: https://img.shields.io/github/release/sashgorokhov/asyncio-contextmanager.svg\n   :target: https://github.com/sashgorokhov/asyncio-contextmanager\n.. |Build Status| image:: https://travis-ci.org/sashgorokhov/asyncio-contextmanager.svg?branch=master\n   :target: https://travis-ci.org/sashgorokhov/asyncio-contextmanager\n.. |codecov| image:: https://codecov.io/gh/sashgorokhov/asyncio-contextmanager/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/sashgorokhov/asyncio-contextmanager\n.. |GitHub license| image:: https://img.shields.io/badge/license-MIT-blue.svg\n   :target: https://raw.githubusercontent.com/sashgorokhov/asyncio-contextmanager/master/LICENSE",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Decorator that turns async generator functions into async context managers.",
    "version": "1.0.1",
    "project_urls": {
        "Download": "https://github.com/sashgorokhov/asyncio-contextmanager/archive/v1.0.1.zip",
        "Homepage": "https://github.com/sashgorokhov/asyncio-contextmanager"
    },
    "split_keywords": [
        "python",
        "asyncio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "06d5fd2ad931e9397c599c81a6a5284d24fa1135d16aac2cc312773b8e8a3828",
                "md5": "c8ce0047d83dfcb6654debd8a434d7b7",
                "sha256": "93b4620cd79623c3988c9f43e6f502263968645cd13aed3327a7ec8be43221d5"
            },
            "downloads": -1,
            "filename": "asyncio-contextmanager-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c8ce0047d83dfcb6654debd8a434d7b7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2145,
            "upload_time": "2017-03-05T16:13:06",
            "upload_time_iso_8601": "2017-03-05T16:13:06.277862Z",
            "url": "https://files.pythonhosted.org/packages/06/d5/fd2ad931e9397c599c81a6a5284d24fa1135d16aac2cc312773b8e8a3828/asyncio-contextmanager-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-03-05 16:13:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sashgorokhov",
    "github_project": "asyncio-contextmanager",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "tox": true,
    "lcname": "asyncio-contextmanager"
}
        
Elapsed time: 0.07583s