Comparison
aiomysql vs mysql-connector-python 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 self-contained Python driver for communicating with MySQL servers, using an API that is compliant with the Python Database API Specification v2.0 (PEP 249).
Actively maintained. Last release 6 weeks ago, commits in 9 of the last 26 weeks. A safe choice.
$
pip install mysql-connector-pythonPure Python MySQL Driver
Actively maintained. Last release 3 weeks ago, commits in 17 of the last 26 weeks. A safe choice.
$
pip install pymysqlIn short
- PyMySQL is the most used: 83.4M downloads a month, 3.3× more than mysql-connector-python.
- PyMySQL also has the best Pythie’s Index (88).
- Safe default for a new project: PyMySQL.
Side by side
| Metric | aiomysql | mysql-connector-python | PyMySQL |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 23 | Pythie’s Index: 73 | Pythie’s Index: 88 |
| Verdict | Low maintenance activity | Actively maintained | Actively maintained |
| Downloads / month | 10.3M | 24.9M | 83.4M |
| Downloads, month over month | -8% | -11% | +6% |
| GitHub stars | 1.9K | 948 | 7.9K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 283 | 820 | 2K |
| Last release | Oct 22, 2025 | Oct 22, 2026 | Nov 9, 2026 |
| Releases, 12 months | 0 | 4 | 6 |
| Weeks with commits | 2 / 26 | 9 / 26 | 17 / 26 |
| Recent contributors | 2 | 12 | 16 |
| First release | Feb 2015 | Nov 2017 | Jun 2009 |
| Python versions | 3.9 – 3.13 | 3.10 – 3.14 | – |
| License | MIT | non-standard | MIT |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.