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 an asynchronous networking and concurrency library that works on top of either asyncio or trio. It implements trio-like structured concurrency 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 native libraries of your chosen backend.

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

  • Asynchronous file I/O (using worker threads)

  • Signal handling

AnyIO also 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-3.0.0rc3.tar.gz (116.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-3.0.0rc3-py3-none-any.whl (75.1 kB view details)

Uploaded Python 3

File details

Details for the file anyio-3.0.0rc3.tar.gz.

File metadata

  • Download URL: anyio-3.0.0rc3.tar.gz
  • Upload date:
  • Size: 116.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for anyio-3.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 20f783c51086bc9b5af2fceaee3a24f58a4f0ad7efcb41048b7845179d22bb11
MD5 b32fa4c30086585ae9323eae565efe5e
BLAKE2b-256 19f94d57f858faf87b0f24ce21cb74cd9f8ce6ddc27b948c65cd44199abbf440

See more details on using hashes here.

File details

Details for the file anyio-3.0.0rc3-py3-none-any.whl.

File metadata

  • Download URL: anyio-3.0.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 75.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for anyio-3.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a770e34353d5a95341d46fb1c3254b0265462605b46f36ea69f0459fc282524
MD5 5cd1b7c9a08ec1b3b2c4c5376e666241
BLAKE2b-256 d376ed6ba234b88dd8533091467df95c0c7901100bf9b3a84b68c901e0424594

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