{"id":13460208,"url":"https://github.com/agronholm/anyio","last_synced_at":"2026-01-06T13:17:58.294Z","repository":{"id":37561794,"uuid":"145337588","full_name":"agronholm/anyio","owner":"agronholm","description":"High level asynchronous concurrency and networking framework that works on top of either trio or asyncio","archived":false,"fork":false,"pushed_at":"2025-05-06T19:37:23.000Z","size":2356,"stargazers_count":2023,"open_issues_count":67,"forks_count":150,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-05-06T21:09:13.421Z","etag":null,"topics":["async-await","asyncio","curio","trio"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agronholm.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"docs/contributing.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/support.rst","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-19T21:07:18.000Z","updated_at":"2025-05-06T19:37:25.000Z","dependencies_parsed_at":"2023-11-15T00:26:31.374Z","dependency_job_id":"ad490069-7204-4a5a-bcd3-4123ea855703","html_url":"https://github.com/agronholm/anyio","commit_stats":{"total_commits":1041,"total_committers":55,"mean_commits":"18.927272727272726","dds":"0.17867435158501443","last_synced_commit":"4d3dd2697a8985216bad5538fbfa4be4c9ebcae3"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Fanyio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Fanyio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Fanyio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agronholm%2Fanyio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agronholm","download_url":"https://codeload.github.com/agronholm/anyio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769422,"owners_count":21801378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async-await","asyncio","curio","trio"],"created_at":"2024-07-31T10:00:37.374Z","updated_at":"2026-01-06T13:17:58.289Z","avatar_url":"https://github.com/agronholm.png","language":"Python","funding_links":[],"categories":["Python","Process, Thread \u0026 Coroutine","语言资源库","Alternatives to asyncio","Asynchronous Programming"],"sub_categories":["C++/C Toolkit","python"],"readme":".. image:: https://github.com/agronholm/anyio/actions/workflows/test.yml/badge.svg\n  :target: https://github.com/agronholm/anyio/actions/workflows/test.yml\n  :alt: Build Status\n.. image:: https://coveralls.io/repos/github/agronholm/anyio/badge.svg?branch=master\n  :target: https://coveralls.io/github/agronholm/anyio?branch=master\n  :alt: Code Coverage\n.. image:: https://readthedocs.org/projects/anyio/badge/?version=latest\n  :target: https://anyio.readthedocs.io/en/latest/?badge=latest\n  :alt: Documentation\n.. image:: https://badges.gitter.im/gitterHQ/gitter.svg\n  :target: https://gitter.im/python-trio/AnyIO\n  :alt: Gitter chat\n\nAnyIO is an asynchronous networking and concurrency library that works on top of either asyncio_ or\nTrio_. It implements Trio-like `structured concurrency`_ (SC) on top of asyncio and works in harmony\nwith the native SC of Trio itself.\n\nApplications and libraries written against AnyIO's API will run unmodified on either asyncio_ or\nTrio_. AnyIO can also be adopted into a library or application incrementally – bit by bit, no full\nrefactoring necessary. It will blend in with the native libraries of your chosen backend.\n\nTo find out why you might want to use AnyIO's APIs instead of asyncio's, you can read about it\n`here \u003chttps://anyio.readthedocs.io/en/stable/why.html\u003e`_.\n\nDocumentation\n-------------\n\nView full documentation at: https://anyio.readthedocs.io/\n\nFeatures\n--------\n\nAnyIO offers the following functionality:\n\n* Task groups (nurseries_ in trio terminology)\n* High-level networking (TCP, UDP and UNIX sockets)\n\n  * `Happy eyeballs`_ algorithm for TCP connections (more robust than that of asyncio on Python\n    3.8)\n  * async/await style UDP sockets (unlike asyncio where you still have to use Transports and\n    Protocols)\n\n* A versatile API for byte streams and object streams\n* Inter-task synchronization and communication (locks, conditions, events, semaphores, object\n  streams)\n* Worker threads\n* Subprocesses\n* Subinterpreter support for code parallelization (on Python 3.13 and later)\n* Asynchronous file I/O (using worker threads)\n* Signal handling\n* Asynchronous version of the functools_ module\n\nAnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures.\nIt even works with the popular Hypothesis_ library.\n\n.. _asyncio: https://docs.python.org/3/library/asyncio.html\n.. _Trio: https://github.com/python-trio/trio\n.. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency\n.. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning\n.. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs\n.. _pytest: https://docs.pytest.org/en/latest/\n.. _functools: https://docs.python.org/3/library/functools.html\n.. _Hypothesis: https://hypothesis.works/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagronholm%2Fanyio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagronholm%2Fanyio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagronholm%2Fanyio/lists"}