anyio 4.13.0


pip install anyio

  Latest version

Released: Mar 24, 2026


Meta
Author: Alex Grönholm
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

Framework
  • AnyIO

Typing
  • Typed

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
Build Status Code Coverage Documentation Gitter chat 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.

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)

  • Worker threads

  • Subprocesses

  • Subinterpreter support for code parallelization (on Python 3.13 and later)

  • Asynchronous file I/O (using worker threads)

  • Signal handling

  • Asynchronous version of the functools module

AnyIO also comes with its own pytest plugin which also supports asynchronous fixtures. It even works with the popular Hypothesis library.

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

4.13.0 Mar 24, 2026
4.12.1 Jan 06, 2026
4.12.0 Nov 28, 2025
4.11.0 Sep 23, 2025
4.10.0 Aug 04, 2025
4.9.0 Mar 17, 2025
4.8.0 Jan 05, 2025
4.7.0 Dec 05, 2024
4.6.2.post1 Oct 14, 2024
4.6.2 Oct 13, 2024
4.6.1 Oct 13, 2024
4.6.0 Sep 21, 2024
4.5.2 Oct 13, 2024
4.5.1 Oct 13, 2024
4.5.0 Sep 19, 2024
4.4.0 May 26, 2024
4.3.0 Feb 19, 2024
4.2.0 Dec 16, 2023
4.1.0 Nov 22, 2023
4.0.0 Aug 30, 2023
4.0.0rc1 Jul 26, 2023
3.7.1 Jul 05, 2023
3.7.0 May 27, 2023
3.7.0rc1 May 18, 2023
3.6.2 Oct 19, 2022
3.6.1 May 13, 2022
3.6.0 May 13, 2022
3.5.0 Jan 11, 2022
3.4.0 Nov 22, 2021
3.3.4 Oct 16, 2021
3.3.3 Oct 10, 2021
3.3.2 Sep 26, 2021
3.3.1 Sep 08, 2021
3.3.0 Jul 22, 2021
3.2.1 Jun 23, 2021
3.2.0 Jun 18, 2021
3.1.0 May 19, 2021
3.0.1 Apr 30, 2021
3.0.0 Apr 20, 2021
3.0.0rc4 Apr 09, 2021
3.0.0rc3 Mar 29, 2021
3.0.0rc2 Mar 28, 2021
3.0.0rc1 Mar 27, 2021
2.2.0 Feb 26, 2021
2.1.0 Feb 07, 2021
2.0.2 Sep 26, 2020
2.0.1 Sep 26, 2020
2.0.0 Sep 11, 2020
2.0.0rc2 Sep 06, 2020
2.0.0rc1 Sep 06, 2020
2.0.0b2 Aug 18, 2020
2.0.0b1 Aug 17, 2020
1.4.0 Jul 06, 2020
1.3.1 May 31, 2020
1.3.0 Mar 25, 2020
1.2.3 Jan 03, 2020
1.2.2 Jan 01, 2020
1.2.1 Nov 27, 2019
1.2.0 Oct 19, 2019
1.1.0 Sep 06, 2019
1.0.0 May 14, 2019
1.0.0rc2 May 07, 2019
1.0.0rc1 Apr 07, 2019
1.0.0b2 Feb 14, 2019
1.0.0b1 Nov 18, 2018
1.0.0a2 Oct 21, 2018
1.0.0a1 Oct 12, 2018

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
exceptiongroup (>=1.0.2)
idna (>=2.8)
typing_extensions (>=4.5)