Comparison
aiomysql vs asyncmy2 vs mysqlclient vs PyMySQL
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
MySQL driver for asyncio.
Low maintenance activity. Last release 13 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install aiomysqlA fast asyncio MySQL driver
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install asyncmy2Python interface to MySQL
Actively maintained. Last release 2 weeks ago, commits in 13 of the last 26 weeks. A safe choice.
$
pip install mysqlclientPure Python MySQL Driver
Actively maintained. Last release 3 weeks ago, commits in 16 of the last 26 weeks. A safe choice.
$
pip install pymysqlIn short
- asyncmy2 is archived: avoid it for new projects.
- PyMySQL is the most used: 84.4M downloads a month, 6.1× more than mysqlclient.
- Maintenance is comparable: PyMySQL 87, mysqlclient 82, aiomysql 23 on Pythie’s Index.
- Safe default for a new project: PyMySQL.
Side by side
| Metric | aiomysql | asyncmy2 | mysqlclient | PyMySQL |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 23 | Pythie’s Index: 14 | Pythie’s Index: 82 | Pythie’s Index: 87 |
| Verdict | Low maintenance activity | Archived | Actively maintained | Actively maintained |
| Downloads / month | 10.6M | 468.4K | 13.9M | 84.4M |
| Downloads, month over month | -5% | +12% | -13% | +7% |
| GitHub stars | 1.9K | 8 | 2.5K | 7.9K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 283 | 2 | 298 | 2K |
| Last release | Oct 22, 2025 | Aug 2, 2026 | Nov 18, 2026 | Nov 9, 2026 |
| Releases, 12 months | 0 | 2 | 4 | 6 |
| Weeks with commits | 2 / 26 | 12 / 26 | 13 / 26 | 16 / 26 |
| Recent contributors | 2 | 2 | 15 | 16 |
| First release | Feb 2015 | Oct 2025 | Apr 2014 | Jun 2009 |
| Python versions | 3.9 – 3.13 | – | 3.10 – 3.14 | – |
| License | MIT | Apache-2.0 | GPL-2.0-or-later | 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.