Skip to main content

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!'

Metadata

Release files for asyncio-contextmanager 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asyncio-contextmanager 1.0.1
File Size Uploaded
asyncio-contextmanager-1.0.1.tar.gz 2.1 kB Details

Release files / asyncio-contextmanager-1.0.1.tar.gz

Download URL asyncio-contextmanager-1.0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
93b4620cd79623c3988c9f43e6f502263968645cd13aed3327a7ec8be43221d5
BLAKE2b-256 checksum
How to use checksums
06d5fd2ad931e9397c599c81a6a5284d24fa1135d16aac2cc312773b8e8a3828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page