Comparison
mysql-connector-python vs MySQL-python vs mysqlclient vs PyMySQL
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A 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 8 of the last 26 weeks. A safe choice.
pip install mysql-connector-pythonPython interface to MySQL
Likely abandoned. No release or commit for years (last release over 12 years ago).
pip install mysql-pythonPython interface to MySQL
Actively maintained. Last release 12 days ago, commits in 10 of the last 26 weeks. A safe choice.
pip install mysqlclientPure 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, 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 | mysql-connector-python | MySQL-python | mysqlclient | PyMySQL |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 71 | 17 |