async_generator
Async generators and context managers for Python 3.5+
Decision gist · record as of 2026-08-14
No, unless you are actively maintaining Python 3.5 code. The package is abandoned and unmaintained since 2020-08-24. If you control the Python version, upgrade to 3.6+ and use native async generators instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.5 or later; primarily useful for Python 3.5 codebases since Python 3.6+ has native async generator syntax.
- Low friction installation with no runtime dependencies.
- However, the package is abandoned as of 2020-08-24 with no releases since 2018-08-01, so it receives no active maintenance or security updates.
License · maintenance · safety
MIT -or- Apache License 2.0 (permissive) — Licensed under MIT or Apache License 2.0 (permissive dual license), giving you freedom to use, modify, and distribute the package with minimal restrictions.
last release 2018-08-01 (2935 days) · last repo commit 2020-08-24 · 104 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,221,111 downloads/mo, #2,137 on PyPI
Alternatives
Verify before relying
pip install async_generator
from async_generator import async_generator, yield_
@async_generator
async def load_json_lines(stream_reader):
async for line in stream_reader:
await yield_(line)- Whether the package remains compatible with modern Python versions beyond those listed in classifiers (3.5–3.6).
- Whether async_generator is still necessary given that Python 3.5 reached end-of-life.
What it is and what it does
async_generator backports async generator and async context manager syntax from Python 3.6+ down to Python 3.5. It lets you write async generator functions using decorators (@async_generator and @asynccontextmanager) and the await yield_() pattern, enabling code that would otherwise only work on newer Python versions to run on 3.5.
The package has no runtime dependencies and installs cleanly. It was maintained by the Trio project and works with any async library. However, the project is abandoned—the last release was 2018-08-01 and the last commit 2020-08-24—so it receives no updates, security patches, or maintenance.
Use it for
- Maintain async code compatibility with Python 3.5 in legacy projects that cannot upgrade their minimum version.
- Use native async generator syntax in Python 3.5 codebases without rewriting to older callback-based patterns.
- Implement async context managers with @asynccontextmanager decorator on Python 3.5 before it was added to the standard library.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are actively maintaining Python 3.5 code.
The package is abandoned and unmaintained since 2020-08-24. If you control the Python version, upgrade to 3.6+ and use native async generators instead.
Install
async-generator on PyPI
Before you install
Low friction installation with no runtime dependencies. However, the package is abandoned as of 2020-08-24 with no releases since 2018-08-01, so it receives no active maintenance or security updates.
Requires Python 3.5 or later; primarily useful for Python 3.5 codebases since Python 3.6+ has native async generator syntax.
License in practice
Licensed under MIT or Apache License 2.0 (permissive dual license), giving you freedom to use, modify, and distribute the package with minimal restrictions.
Quickstart
pip install async_generator
from async_generator import async_generator, yield_
@async_generator
async def load_json_lines(stream_reader):
async for line in stream_reader:
await yield_(line)
Verify before relying
- Whether the package remains compatible with modern Python versions beyond those listed in classifiers (3.5–3.6).
- Whether async_generator is still necessary given that Python 3.5 reached end-of-life.
Package facts
| License | MIT -or- Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,935 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,221,111 / month, #2,137 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: async_generator-1.10-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “async generators python 3.5”
- async_generatorProvides async generators and async context managers for Python 3.5,…
- asynctestExtends Python's unittest module with test utilities and mocks…
- aiocontextvarsProvides asyncio support for the contextvars backport library on…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also async-exit-stack · pytest-aio · greenback · contextlib2 · pytest-trio · flake8-async · unasync · aioitertools · asyncgui · synchronicity