Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Decorator that turns async generator functions into async context managers.

Project description

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)

pip install asyncio-contextmanager

Usage

Usage is straightforward and simple:

from aiocontext import async_contextmanager

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

Project details


Release history Release notifications

This version
History Node

1.0.1

History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
asyncio-contextmanager-1.0.1.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None Mar 5, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page