skillfed

anyio

High-level concurrency and networking framework on top of asyncio or Trio

anyio Permissive license MIT Active 2,524 v4.14.2 released

Install

anyio on PyPI

pip

pip install anyio

uv

uv add anyio

poetry

poetry add anyio

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — exceptiongroup, idna, typing_extensions
Maintenance actively maintained — 32 days since the last release
Last repo commit
First released
Popularity one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: anyio-4.14.2-py3-none-any.whl

Development Status :: 5 - Production/StableFramework :: AnyIOIntended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Typing :: Typed

About anyio

from the package's own PyPI description — quoted content, verbatim

.. image:: https://github.com/agronholm/anyio/actions/workflows/test.yml/badge.svg :target: https://github.com/agronholm/anyio/actions/workflows/test.yml :alt: Build Status .. image:: https://coveralls.io/repos/github/agronholm/anyio/badge.svg?branch=master :target: https://coveralls.io/github/agronholm/anyio?branch=master :alt: Code Coverage .. image:: https://readthedocs.org/projects/anyio/badge/?version=latest :target: https://anyio.readthedocs.io/en/latest/?badge=latest :alt: Documentation .. image:: https://badges.gitter.im/gitterHQ/gitter.svg :target: https://gitter.im/python-trio/AnyIO :alt: Gitter chat .. image:: https://tidelift.com/badges/package/pypi/anyio :target: https://tidelift.com/subscription/pkg/pypi-anyio :alt: Tidelift

AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio_ or Trio_. It implements Trio-like structured concurrency_ (SC) on top of asyncio and works in harmony with the native SC of Trio itself.

Applications and libraries written against AnyIO's API will run unmodified on either asyncio_ or Trio_. AnyIO can also be adopted into a library or application incrementally – bit by bit,...

Read as markdown · JSON record · Source repository · Docs

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

AnyIO is an asynchronous networking and concurrency library that provides a unified API across asyncio and Trio backends, enabling structured concurrency patterns like task groups, high-level networking (TCP, UDP, UNIX sockets), and inter-task synchronization.

Low friction install with three lightweight runtime dependencies (exceptiongroup, idna, typing_extensions). Actively maintained with a recent release 32 days ago and continuous repository activity; 2524 GitHub stars indicate broad adoption.

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Usage

pip install anyio

import anyio

async def main():
    async with anyio.create_task_group() as tg:
        tg.start_soon(some_async_function)

anyio.run(main)

Requires Python 3.10 or later; applications must use async/await syntax and either asyncio or Trio as the underlying backend.

Verdict: AnyIO is a production-stable, actively maintained library in the top 100 PyPI packages with no known vulnerabilities. Its permissive MIT license, low install friction, and broad Python version support (3.10–3.15) make it a reliable choice for building cross-backend async applications.

Needs verification

  • Whether the package's pytest plugin and Hypothesis integration are included in the base install or require optional dependencies.
  • Performance characteristics and overhead compared to using asyncio or Trio directly.
async concurrency frameworkasyncio trio abstractionstructured concurrency libraryasync networking socketscross-backend async api

Similar packages