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.0rc4.tar.gz (116.9 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.0rc4-py3-none-any.whl (72.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anyio-3.0.0rc4.tar.gz
  • Upload date:
  • Size: 116.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for anyio-3.0.0rc4.tar.gz
Algorithm Hash digest
SHA256 8af955ebf754b245d51d9d96652bb87475f0ad1e32d3d691e6872c1e7c3c5188
MD5 01a9806806f34524a90b0e1ac8023a1e
BLAKE2b-256 53b3cef900583145fb31316a1730135ddc48be144fe7d16b617fb3d8fcd9703f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anyio-3.0.0rc4-py3-none-any.whl
  • Upload date:
  • Size: 72.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for anyio-3.0.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 0cf45acfcfee23b92443e2e9d8938023e9de01cc70943a107201b522e06c9e30
MD5 ddc3f714730fb3b2d4c7bb83842cca63
BLAKE2b-256 83c51d983222a49ff819ce66283500fb527625ff47273e72a2d30d284c179616

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