Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

anyio

4.16.0ActivePythie’s Index: 88

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

Actively maintained. Last release 4 weeks ago, commits in 26 of the last 26 weeks. A safe choice.

Async & ConcurrencyHTTP & Networking
$pip install anyio
agronholm/anyioDocsPyPI
.. 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, no full refactoring necessary. It will blend in with the native libraries of your chosen backend. To find out why you might want to use AnyIO's APIs instead of asyncio's, you can read about it `here <https://anyio.readthedocs.io/en/stable/why.html>`_. Documentation ------------- View full documentation at: https://anyio.readthedocs.io/ Features -------- AnyIO offers the following functionality: * Task groups (nurseries_ in trio terminology) * High-level networking (TCP, UDP and UNIX sockets) * `Happy eyeballs`_ algorithm for TCP connections (more robust than that of asyncio on Python 3.8) * async/await style UDP sockets (unlike asyncio where you still have to use Transports and Protocols) * A versatile API for byte streams and object streams * Inter-task synchronization and communication (locks, conditions, events, semaphores, object streams and futures) * Worker threads * Subprocesses * Subinterpreter support for code parallelization (on Python 3.13 and later) * Asynchronous file I/O (using worker threads) * Signal handling * Asynchronous versions of the functools_ and itertools_ modules AnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures. It even works with the popular Hypothesis_ library. .. _asyncio: https://docs.python.org/3/library/asyncio.html .. _Trio: https://github.com/python-trio/trio .. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency .. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning .. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs .. _pytest: https://docs.pytest.org/en/latest/ .. _functools: https://docs.python.org/3/library/functools.html .. _itertools: https://docs.python.org/3/library/itertools.html .. _Hypothesis: https://hypothesis.works/ Security contact information ---------------------------- To report a security vulnerability, please use the `Tidelift security contact`_. Tidelift will coordinate the fix and disclosure. .. _Tidelift security contact: https://tidelift.com/security

Popularity

Downloads / month
1.1B
GitHub stars
2.6K
Downloads, last 7 days
249.5M-4%
Stars, last 7 days
–
Direct dependents
3.9K
All dependents
136.1K

Pythie’s Index

How it works
88

Healthy

Maintenance, out of 100

  • Recent release

    last release 27 days ago

  • Commit activity

    26/26 weeks with commits

  • Release cadence

    9 releases in 12 months

  • Issues & PRs handled

    48% closed in the past year

  • Contributor spread

    42 authors in last 100 commits

  • OpenSSF Scorecard

    5.6/10

Commits, last 26 weeks202

Releases

Latest
4.16.0
Released
Nov 1, 2026
Releases, 12 months
9
First release
Oct 12, 2018

Compatibility

Requires Python
>=3.10
Tested on
3.10 · 3.11 · 3.12 · 3.13 · 3.14 · 3.15
License
MIT (Permissive)

Keywords

async-awaittrioasyncio

Alternatives

Use instead of anyio: tools that do the same job, closest first.

Compare with trio →Compare with duet →Compare with curio →Compare all 4 →

  • trio0.35.0ActivePythie’s Index: 81

    A friendly Python library for async concurrency and I/O

    Async & ConcurrencyHTTP & Networking7.4K40.3M/moReleased Oct 31, 2026
  • duet0.2.9ActivePythie’s Index: 48

    A simple future-based async library for python.

    Async & Concurrency28291.7K/moReleased Nov 3, 2026
  • curio1.6ArchivedPythie’s Index: 3

    Curio

    Async & Concurrency4.1K65.5K/moReleased Oct 25, 2022

Works well with

Use together with anyio: extensions, drivers, servers and companion tools.

  • uvloopPythie’s Index: 56Fast implementation of asyncio event loop on top of libuv298.8M downloads/mo
  • asyncioPythie’s Index: 6Deprecated backport of asyncio; use the stdlib package instead6.7M downloads/mo
  • asyncerPythie’s Index: 86Asyncer, async and await, focused on developer experience.9.7M downloads/mo
  • sqlite-anyioPythie’s Index: 63Asynchronous client for SQLite using AnyIO884.6K downloads/mo
  • pytest-anyioPythie’s Index: 11The pytest anyio plugin is built into anyio. You don't need this package.1.2M downloads/mo