backports_abc
A backport of recent additions to the 'collections.abc' module.
Decision gist · record as of 2026-08-14
No, unless you are actively maintaining Python 2.x or Python 3.2 codebases. For any modern Python project (3.3+), these classes are built-in and this package is unnecessary. The package is abandoned and will not receive updates or security patches. If you do need it for legacy support, installation is safe and frictionless, but consider whether the legacy Python version itself is still worth supporting.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Primarily useful for Python 2.x and Python 3.2; modern Python versions (3.3+) have these ABCs built-in, making this package unnecessary for current codebases.
- Installation is frictionless with no runtime dependencies.
- However, the package is abandoned—last commit was 2022-01-29 and no releases since 2016-11-12.
License · maintenance · safety
UNKNOWN (permissive) — Licensed under the Python Software Foundation License (permissive). No licensing restrictions on use or redistribution.
last release 2016-11-12 (3562 days) · last repo commit 2022-01-29 · 7 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 576,451 downloads/mo, #5,930 on PyPI
Alternatives
Verify before relying
pip install backports_abc
import backports_abc
backports_abc.patch()
from collections.abc import Coroutine, Generator- Whether this package is still necessary given that Python 2 reached end-of-life in 2020 and Python 3.2 is no longer supported.
- Current real-world usage patterns and whether new projects still depend on it.
What it is and what it does
backports_abc fills a gap for developers maintaining code that must run on Python 2.x or Python 3.2, where abstract base classes like Coroutine, Generator, and Awaitable did not yet exist in the standard library. Starting in Python 3.3, these classes moved into collections.abc as part of the standard library. This package provides those classes as a fallback import for older interpreters, and includes a patch() function that can inject them into the collections or collections.abc module namespace to make them available through the standard import path.
The package has no runtime dependencies and installs with low friction. However, it has been abandoned since 2016 and is only relevant for legacy Python 2 or Python 3.2 codebases. Modern Python versions render it unnecessary.
Use it for
- Maintaining a library that must support Python 2.7 while using Coroutine or Generator type hints.
- Patching collections.abc in Python 3.2 environments to provide missing abstract base classes.
- Conditional imports in compatibility layers that need to work across Python 2, 3.2, and 3.3+.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are actively maintaining Python 2.x or Python 3.2 codebases.
For any modern Python project (3.3+), these classes are built-in and this package is unnecessary. The package is abandoned and will not receive updates or security patches. If you do need it for legacy support, installation is safe and frictionless, but consider whether the legacy Python version itself is still worth supporting.
Install
backports-abc on PyPI
Before you install
Installation is frictionless with no runtime dependencies. However, the package is abandoned—last commit was 2022-01-29 and no releases since 2016-11-12. It remains stable for its narrow purpose but will not receive updates.
Primarily useful for Python 2.x and Python 3.2; modern Python versions (3.3+) have these ABCs built-in, making this package unnecessary for current codebases.
License in practice
Licensed under the Python Software Foundation License (permissive). No licensing restrictions on use or redistribution.
Quickstart
pip install backports_abc
import backports_abc
backports_abc.patch()
from collections.abc import Coroutine, Generator
Verify before relying
- Whether this package is still necessary given that Python 2 reached end-of-life in 2020 and Python 3.2 is no longer supported.
- Current real-world usage patterns and whether new projects still depend on it.
Package facts
| License | UNKNOWN permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,562 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 576,451 / month, #5,930 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/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3 |
Evidence: backports_abc-0.5-py2.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 › “collections.abc backport”
- backports_abcProvides backports of abstract base classes (Generator, Coroutine,…
- backports.tarfileProvides a backport of Python's tarfile module for use on Python…
- backports.zstdProvides Zstandard compression support for Python versions before…
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 exceptiongroup · pathlib-abc · inspect2 · traceback2 · backports.asyncio.runner · linecache2 · backports.functools-lru-cache · contextlib2 · backports.ssl · python-interface