python-anyio
Port variant v15
Summary Layer built on asyncio or trio libraries (3.15)
Package version 4.16.0
Homepage https://pypi.org/project/anyio/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 13 NOV 2026, 13:25:52 UTC
Port created 17 JUL 2023, 23:40:12 UTC
Subpackage Descriptions
single :alt: Build Status :alt: Code Coverage :alt: Documentation :alt: Gitter chat :alt: Tidelift 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. To find out why you might want to use AnyIO's APIs instead of asyncio's, you can read about it [here]. 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 and futures) * Worker threads * Subprocesses * Subinterpreter support for code parallelization (on Python 3.13 and later) * Asynchronous file I/O (using worker threads) * Signal handling * Asynchronous versions of the functools_ and itertools_ modules AnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures. It even works with the popular Hypothesis_ library. .. _asyncio: https://docs.python.org/3/library/asyncio.html .. _Trio: https://github.com/python-trio/trio .. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency .. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning .. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs .. _pytest: https://docs.pytest.org/en/latest/ .. _functools: https://docs.python.org/3/library/functools.html .. _itertools: https://docs.python.org/3/library/itertools.html .. _Hypothesis: https://hypothesis.works/ Security contact information ---------------------------- To report a security vulnerability, please use the `Tidelift security contact`_. Tidelift will coordinate the fix and disclosure. .. _Tidelift security contact: https://tidelift.com/security
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python315:dev:std
python-pip:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Runtime (only) python-idna:single:v15
Download groups
main mirror://PYPIWHL/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a
Distribution File Information
c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026 134521 python-src/anyio-4.16.0-py3-none-any.whl
Ports that require python-anyio:v15
python-httpx:v15 Next generation HTTP client (3.15)