Comparison
mariadb vs MySQL-python vs PyMySQL
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python MariaDB extension
Actively maintained. Last release 3 weeks ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install mariadbPython interface to MySQL
Likely abandoned. No release or commit for years (last release over 12 years ago).
$
pip install mysql-pythonPure Python MySQL Driver
Actively maintained. Last release 3 weeks ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install pymysqlIn short
- MySQL-python looks abandoned: avoid it for new projects.
- PyMySQL is the most used: 84.8M downloads a month, 139× more than mariadb.
- Maintenance is comparable: PyMySQL 88, mariadb 81 on Pythie’s Index.
- mariadb is growing fastest: downloads +47% over the last month.
- Safe default for a new project: PyMySQL.
Side by side
| Metric | mariadb | MySQL-python | PyMySQL |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 81 | Pythie’s Index: 17 | Pythie’s Index: 88 |
| Verdict | Actively maintained | Likely abandoned | Actively maintained |
| Downloads / month | 610.2K | 111.7K | 84.8M |
| Downloads, month over month | +47% | -3% | +7% |
| GitHub stars | 153 | 662 | 7.9K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 51 | 15 | 2K |
| Last release | Nov 9, 2026 | Jan 2, 2014 | Nov 9, 2026 |
| Releases, 12 months | 3 | 0 | 6 |
| Weeks with commits | 15 / 26 | 0 / 26 | 15 / 26 |
| Recent contributors | 5 | 12 | 16 |
| First release | Dec 2019 | Mar 2007 | Jun 2009 |
| Python versions | 3.11 – 3.15 | – | – |
| License | LGPL-2.1 | non-standard | MIT |
| Known vulnerabilities | 1 | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.