Skip to main content

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


Release history Release notifications | RSS feed

Download files

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

Source Distribution

anyio-2.0.1.tar.gz (91.8 kB view details)

Uploaded Source

Built Distribution

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

anyio-2.0.1-py3-none-any.whl (62.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anyio-2.0.1.tar.gz
  • Upload date:
  • Size: 91.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

File hashes

Hashes for anyio-2.0.1.tar.gz
Algorithm Hash digest
SHA256 ff5b9b20a1172414107117cfc3ebf5b433fd4875c04dff4576bcced90cced7b4
MD5 7e3acbbf662ff7440fdd99f8bb12edd8
BLAKE2b-256 88983e6133fe26ed9e84950408d4e84dac0de7b6f7b98a7168fd35af1655952f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anyio-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 62.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

File hashes

Hashes for anyio-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c428e51779aca531105431b96e08a2c49819b311681e0afef8b8307af551af40
MD5 b4ed87b62a136ff69b41844125dc3614
BLAKE2b-256 ab735eae94ac9aa5f52c0918583de7c8c2aa44b0f176dfecdcdd3e853d7d3f94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page