METADATA 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Metadata-Version: 2.4
  2. Name: anyio
  3. Version: 4.12.0
  4. Summary: High-level concurrency and networking framework on top of asyncio or Trio
  5. Author-email: Alex Grönholm <alex.gronholm@nextday.fi>
  6. License-Expression: MIT
  7. Project-URL: Documentation, https://anyio.readthedocs.io/en/latest/
  8. Project-URL: Changelog, https://anyio.readthedocs.io/en/stable/versionhistory.html
  9. Project-URL: Source code, https://github.com/agronholm/anyio
  10. Project-URL: Issue tracker, https://github.com/agronholm/anyio/issues
  11. Classifier: Development Status :: 5 - Production/Stable
  12. Classifier: Intended Audience :: Developers
  13. Classifier: Framework :: AnyIO
  14. Classifier: Typing :: Typed
  15. Classifier: Programming Language :: Python
  16. Classifier: Programming Language :: Python :: 3
  17. Classifier: Programming Language :: Python :: 3.9
  18. Classifier: Programming Language :: Python :: 3.10
  19. Classifier: Programming Language :: Python :: 3.11
  20. Classifier: Programming Language :: Python :: 3.12
  21. Classifier: Programming Language :: Python :: 3.13
  22. Classifier: Programming Language :: Python :: 3.14
  23. Requires-Python: >=3.9
  24. Description-Content-Type: text/x-rst
  25. License-File: LICENSE
  26. Requires-Dist: exceptiongroup>=1.0.2; python_version < "3.11"
  27. Requires-Dist: idna>=2.8
  28. Requires-Dist: typing_extensions>=4.5; python_version < "3.13"
  29. Provides-Extra: trio
  30. Requires-Dist: trio>=0.32.0; python_version >= "3.10" and extra == "trio"
  31. Requires-Dist: trio>=0.31.0; python_version < "3.10" and extra == "trio"
  32. Dynamic: license-file
  33. .. image:: https://github.com/agronholm/anyio/actions/workflows/test.yml/badge.svg
  34. :target: https://github.com/agronholm/anyio/actions/workflows/test.yml
  35. :alt: Build Status
  36. .. image:: https://coveralls.io/repos/github/agronholm/anyio/badge.svg?branch=master
  37. :target: https://coveralls.io/github/agronholm/anyio?branch=master
  38. :alt: Code Coverage
  39. .. image:: https://readthedocs.org/projects/anyio/badge/?version=latest
  40. :target: https://anyio.readthedocs.io/en/latest/?badge=latest
  41. :alt: Documentation
  42. .. image:: https://badges.gitter.im/gitterHQ/gitter.svg
  43. :target: https://gitter.im/python-trio/AnyIO
  44. :alt: Gitter chat
  45. AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio_ or
  46. Trio_. It implements Trio-like `structured concurrency`_ (SC) on top of asyncio and works in harmony
  47. with the native SC of Trio itself.
  48. Applications and libraries written against AnyIO's API will run unmodified on either asyncio_ or
  49. Trio_. AnyIO can also be adopted into a library or application incrementally – bit by bit, no full
  50. refactoring necessary. It will blend in with the native libraries of your chosen backend.
  51. To find out why you might want to use AnyIO's APIs instead of asyncio's, you can read about it
  52. `here <https://anyio.readthedocs.io/en/stable/why.html>`_.
  53. Documentation
  54. -------------
  55. View full documentation at: https://anyio.readthedocs.io/
  56. Features
  57. --------
  58. AnyIO offers the following functionality:
  59. * Task groups (nurseries_ in trio terminology)
  60. * High-level networking (TCP, UDP and UNIX sockets)
  61. * `Happy eyeballs`_ algorithm for TCP connections (more robust than that of asyncio on Python
  62. 3.8)
  63. * async/await style UDP sockets (unlike asyncio where you still have to use Transports and
  64. Protocols)
  65. * A versatile API for byte streams and object streams
  66. * Inter-task synchronization and communication (locks, conditions, events, semaphores, object
  67. streams)
  68. * Worker threads
  69. * Subprocesses
  70. * Subinterpreter support for code parallelization (on Python 3.13 and later)
  71. * Asynchronous file I/O (using worker threads)
  72. * Signal handling
  73. * Asynchronous version of the functools_ module
  74. AnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures.
  75. It even works with the popular Hypothesis_ library.
  76. .. _asyncio: https://docs.python.org/3/library/asyncio.html
  77. .. _Trio: https://github.com/python-trio/trio
  78. .. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency
  79. .. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning
  80. .. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs
  81. .. _pytest: https://docs.pytest.org/en/latest/
  82. .. _functools: https://docs.python.org/3/library/functools.html
  83. .. _Hypothesis: https://hypothesis.works/