Comparison
asynctest vs pytest-anyio vs pytest-asyncio vs pytest-trio
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Enhance the standard unittest package with features for testing asyncio libraries
Likely abandoned. No release or commit for years (last release over 7 years ago).
pip install asynctestThe pytest anyio plugin is built into anyio. You don't need this package.
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install pytest-anyioPytest support for asyncio
Actively maintained. Last release 3 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install pytest-asyncioPytest plugin for trio
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install pytest-trioIn short
- asynctest looks abandoned: avoid it for new projects.
- pytest-anyio looks abandoned: avoid it for new projects.
- pytest-trio looks abandoned: avoid it for new projects.
- pytest-asyncio is the most used: 292.9M downloads a month, 47× more than asynctest.
- pytest-asyncio also has the best Pythie’s Index (91).
- pytest-asyncio is growing fastest: downloads +13% over the last month.
- Safe default for a new project: pytest-asyncio.
Side by side
| Metric | asynctest | pytest-anyio | pytest-asyncio | pytest-trio |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 14 | Pythie’s Index: 11 | Pythie’s Index: 91 | Pythie’s Index: 20 |
| Verdict | Likely abandoned | Likely abandoned | Actively maintained | Likely abandoned |
| Downloads / month | 6.3M | 1.2M | 292.9M | 309.6K |
| Downloads, month over month | -4% | -1% | +13% | +10% |
| GitHub stars | 309 | 0 | 1.7K | 61 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 62 | 2 | 969 | 4 |
| Last release | May 14, 2019 | Jun 29, 2021 | Nov 13, 2026 | Nov 1, 2022 |
| Releases, 12 months | 0 | 0 | 8 | 0 |
| Weeks with commits | 0 / 26 | 0 / 26 | 26 / 26 | 0 / 26 |
| Recent contributors | 6 | 1 | 7 | 10 |
| First release | May 2015 | Jun 2021 | Apr 2015 | Dec 2017 |
| Python versions | 3.5 – 3.7 | – | 3.10 – 3.15 | 3.7 – 3.11 |
| License | Apache-2.0 | MIT | Apache-2.0 | Apache-2.0 OR MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.