Skip to main content
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 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.

Security contact information

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anyio-4.15.0.tar.gz (276.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anyio-4.15.0-py3-none-any.whl (131.9 kB view details)

Uploaded Python 3

File details

Details for the file anyio-4.15.0.tar.gz.

File metadata

  • Download URL: anyio-4.15.0.tar.gz
  • Upload date:
  • Size: 276.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for anyio-4.15.0.tar.gz
Algorithm Hash digest
SHA256 b5c620ed540725e2579c31b17bb995b3bf02c9281c9cace04c7d186380bab85e
MD5 93550f76cb0ec7f5140f5ad8aedeca5d
BLAKE2b-256 ea9ac15a60547004a3f3cea20296c934f827ddd7bdba225a2e7e9fcb5ec48c80

See more details on using hashes here.

Provenance

The following attestation bundles were made for anyio-4.15.0.tar.gz:

Publisher: publish.yml on agronholm/anyio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anyio-4.15.0-py3-none-any.whl.

File metadata

  • Download URL: anyio-4.15.0-py3-none-any.whl
  • Upload date:
  • Size: 131.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for anyio-4.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ecd9937369ffce8bba0b5ccb9b3a9507b101b0ed50256aecfbab27e6c2acb99
MD5 fca55ee301da9f7cca5834d36acaba47
BLAKE2b-256 21a62b21ce5ebe4d8938a247c9b0dbb7271566ae559b01795c83ea4bb2660ed7

See more details on using hashes here.

Provenance

The following attestation bundles were made for anyio-4.15.0-py3-none-any.whl:

Publisher: publish.yml on agronholm/anyio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

4.15.1

2 files

This release

4.15.0 This release

2 files

4.14.2

2 files

4.14.1

2 files

4.14.0

2 files

4.13.0

2 files

4.12.1

2 files

4.12.0

2 files

4.11.0

2 files

4.10.0

2 files

4.9.0

2 files

4.8.0

2 files

4.7.0

2 files

4.6.2.post1

2 files

4.6.2

2 files

4.6.1

2 files

4.6.0

2 files

4.5.2

2 files

4.5.1

2 files

4.5.0

2 files

4.4.0

2 files

4.3.0

2 files

4.2.0

2 files

4.1.0

2 files

4.0.0

2 files

3.7.1

2 files

3.7.0

2 files

3.6.2

2 files

3.6.1

2 files

3.6.0

2 files

3.5.0

2 files

3.4.0

2 files

3.3.4

2 files

3.3.3

2 files

3.3.2

2 files

3.3.1

2 files

3.3.0

2 files

3.2.1

2 files

3.2.0

2 files

3.1.0

2 files

3.0.1

2 files

3.0.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page