Skip to main content

High level compatibility layer for multiple asynchronous event loop implementations

Reason this release was yanked:

This was 4.5.2 code, mistagged

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 (SC) 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 the native libraries of your chosen backend.

Documentation

View full documentation at: https://anyio.readthedocs.io/

Features

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-4.6.2.tar.gz (171.3 kB view details)

Uploaded Source

Built Distribution

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

anyio-4.6.2-py3-none-any.whl (89.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anyio-4.6.2.tar.gz
  • Upload date:
  • Size: 171.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for anyio-4.6.2.tar.gz
Algorithm Hash digest
SHA256 f72a7bb3dd0752b3bd8b17a844a019d7fbf6ae218c588f4f9ba1b2f600b12347
MD5 d1114f243103206a9e520ac069134316
BLAKE2b-256 f0be7dee9e9d755e896c81cf210b37a727995da6e31b459c1182ad4937c08490

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anyio-4.6.2-py3-none-any.whl
  • Upload date:
  • Size: 89.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for anyio-4.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6caec6b1391f6f6d7b2ef2258d2902d36753149f67478f7df4be8e54d03a8f54
MD5 5835051c5489ea9dc29903e95ff8bb0a
BLAKE2b-256 3edca27d58194ddcbeb295500cc6bf233d4dfb34a95a10ca5dbe4ff8454399e4

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