$npx skillfedfor your agent

taskgroup

backport of asyncio.TaskGroup, asyncio.Runner and asyncio.timeout

With conditionsPyPI Software DevelopmentReleased Jan 20252.8M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — taskgroup-0.2.2-py2.py3-none-any.whl
v0.2.2 · released 2025-01-03 · 2 runtime deps: exceptiongroup, typing_extensions

Yes, if you need TaskGroup or timeout on Python versions prior to 3.12. The package is lightweight, permissively licensed, actively maintained, has no known vulnerabilities, and solves a real compatibility gap. Use conditional imports to avoid redundancy on Python 3.12+.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later; asyncio event loop must be available.
  • Low install friction; pure Python wheel with only two lightweight runtime dependencies (exceptiongroup and typing_extensions).
  • Repository is active with a recent release (2025-01-03) and no archived status.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive); you can use this in commercial and proprietary projects with minimal restrictions, provided you include the license notice.

last release 2025-01-03 (588 days) · last repo commit 2026-08-10 · 10 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,771,696 downloads/mo, #2,895 on PyPI

Verify before relying

from taskgroup import TaskGroup, timeout, run

async def main():
    async with TaskGroup() as group:
        group.create_task(some_coroutine())

run(main())
  • Whether the backport maintains full API and behavior parity with Python 3.12.8 TaskGroup in edge cases.
  • Performance characteristics compared to native asyncio.TaskGroup in Python 3.12+.
  • Whether uncancel and context-setting behavior is fully compatible with all asyncio patterns.
  • Exact Python version support range (description mentions 3.8–3.11 but requires_python is unspecified).
Same gist for agents: .md · .json

What it is and what it does

TaskGroup is a backport of Python 3.12.8's structured concurrency primitives to older Python versions. It provides TaskGroup (for managing groups of concurrent tasks with unified exception handling), Runner (a context manager for running async code), and timeout (for enforcing time limits on async operations). The implementation works by temporarily replacing the current asyncio.Task with a subclass that adds uncancel and context-setting support, allowing most of asyncio's C-accelerated behavior to remain intact.

This package is useful when you want to write modern async code using Python 3.12's concurrency patterns but need to support older Python environments. It depends on exceptiongroup and typing_extensions to bridge compatibility gaps.

Use it for

  • Write async code using TaskGroup syntax on older Python versions without waiting for a platform upgrade.
  • Manage multiple concurrent tasks with automatic exception aggregation and cleanup across Python versions.
  • Add timeout enforcement to async operations on Python versions that lack native asyncio.timeout.
  • Migrate legacy async codebases to structured concurrency patterns while maintaining backward compatibility.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need TaskGroup or timeout on Python versions prior to 3.12.

The package is lightweight, permissively licensed, actively maintained, has no known vulnerabilities, and solves a real compatibility gap. Use conditional imports to avoid redundancy on Python 3.12+.

Install

taskgroup on PyPI

Before you install

Low install friction; pure Python wheel with only two lightweight runtime dependencies (exceptiongroup and typing_extensions). Repository is active with a recent release (2025-01-03) and no archived status.

Requires Python 3.8 or later; asyncio event loop must be available.

License in practice

MIT license (permissive); you can use this in commercial and proprietary projects with minimal restrictions, provided you include the license notice.

Quickstart

from taskgroup import TaskGroup, timeout, run

async def main():
    async with TaskGroup() as group:
        group.create_task(some_coroutine())

run(main())

Verify before relying

  • Whether the backport maintains full API and behavior parity with Python 3.12.8 TaskGroup in edge cases.
  • Performance characteristics compared to native asyncio.TaskGroup in Python 3.12+.
  • Whether uncancel and context-setting behavior is fully compatible with all asyncio patterns.
  • Exact Python version support range (description mentions 3.8–3.11 but requires_python is unspecified).

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
exceptiongrouptyping_extensions
MaintenanceActively maintained 588 days since the last release
Last repo commit
First released
Downloads2,771,696 / month, #2,895 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT License

Evidence: taskgroup-0.2.2-py2.py3-none-any.whl

Tags

Capabilities
asyncio taskgroup backportstructured concurrency pythonasyncio runner timeoutpython 3.8 taskgroupasync task managementasyncio context managerconcurrent task groups
Topics
asynciobackportconcurrency

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 › “asyncio taskgroup backport”

  • taskgroupBackports asyncio.TaskGroup, asyncio.Runner, and asyncio.timeout from…
  • aiotoolsaiotools provides idiomatic asyncio utilities for structured…
  • asyncioThis package is an obsolete backport of Python's asyncio module and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also backports.asyncio.runner · subprocess32 · aiocontextvars · aiotools · async-interrupt · asyncio · threaded · backports.tempfile · futures · contextlib2