Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

High level compatibility layer for multiple asynchronous event loop implementations

Project description

Build Status Code Coverage Documentation Gitter chat

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
  • Subprocesses
  • Inter-task synchronization and communication (locks, conditions, events, semaphores, object streams)
  • 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 2.0.2
Filename, size File type Python version Upload date Hashes
Filename, size anyio-2.0.2-py3-none-any.whl (62.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size anyio-2.0.2.tar.gz (91.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page