Skip to main content

High level compatibility layer for multiple asynchronous event loop implementations

Project description

Build Status Code Coverage Documentation

AnyIO is a asynchronous compatibility API that allows applications and libraries written against it to run unmodified on asyncio, curio and trio.

It bridges the following functionality:

  • Task groups
  • Cancellation
  • Threads
  • Signal handling
  • Asynchronous file I/O
  • Synchronization primitives (locks, conditions, events, semaphores, queues)
  • High level networking (TCP, UDP and UNIX sockets)

You can even use it together with native libraries from your selected backend in applications. Doing this in libraries is not advisable however since it limits the usefulness of your library.

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

Project details


Download files

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

Files for anyio, version 1.0.0
Filename, size & hash File type Python version Upload date
anyio-1.0.0-py3-none-any.whl (40.0 kB) View hashes Wheel py3
anyio-1.0.0.tar.gz (44.4 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page