Comparison
aiomysql vs mariadb vs mysql-connector 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 aiomysqlPython MariaDB extension
Actively maintained. Last release 3 weeks ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install mariadbMySQL driver written in Python
Likely abandoned. No release or commit for years (last release over 7 years ago).
$
pip install mysql-connectorPure 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
- mysql-connector looks abandoned: avoid it for new projects.
- PyMySQL is the most used: 84.6M downloads a month, 8.0× more than aiomysql.
- Maintenance is comparable: PyMySQL 87, mariadb 81, aiomysql 23 on Pythie’s Index.
- mariadb is growing fastest: downloads +46% over the last month.
- Safe default for a new project: PyMySQL.
Side by side
| Metric | aiomysql | mariadb | mysql-connector | PyMySQL |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 23 | Pythie’s Index: 81 | Pythie’s Index: 19 | Pythie’s Index: 87 |
| Verdict | Low maintenance activity | Actively maintained | Likely abandoned | Actively maintained |
| Downloads / month | 10.6M | 642.7K | 908.4K | 84.6M |
| Downloads, month over month | -5% | +46% | -16% | +6% |
| GitHub stars | 1.9K | 152 | – | 7.9K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 283 | 51 | 1 | 2K |
| Last release | Oct 22, 2025 | Nov 9, 2026 | Apr 1, 2019 | Nov 9, 2026 |
| Releases, 12 months | 0 | 3 | 0 | 6 |
| Weeks with commits | 2 / 26 | 15 / 26 | – | 16 / 26 |
| Recent contributors | 2 | 5 | – | 16 |
| First release | Feb 2015 | Dec 2019 | Apr 2019 | Jun 2009 |
| Python versions | 3.9 – 3.13 | 3.11 – 3.15 | 3.1 – 3.3 | – |
| License | MIT | LGPL-2.1 | non-standard | MIT |
| Known vulnerabilities | None | 1 | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.