PyMySQL/mysqlclient
Some data may be outdated — see provenance labels.
MySQL/MariaDB connector for Python observed · 2026-09-26
Health v2 · maintenance only
85/100
- Activity 96
- Release rhythm 62
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 209
- age_days: 4558
- days_rel: 43
- days_push: 25
- n_releases_24m: 4
Adoption not part of the score
2539 stars · 444 forks observed · 2026-09-26
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
mysqlclient is a Python DB-API 2.0 compatible driver for MySQL and MariaDB, forked from MySQLdb1 with Python 3 support and bug fixes. It wraps the MySQL C API in a C extension for fast database access.
Use cases
- connect to MySQL from Python
- query a MariaDB database in a Django app
- fast MySQL driver with C extension performance
- run SQL inserts and selects against MySQL
- replace MySQLdb with a maintained Python 3 fork
- use MySQL with SQLAlchemy in production
When to choose
- you need maximum MySQL performance via a C extension
- you use Django or SQLAlchemy with MySQL/MariaDB
- you want the classic MySQLdb API maintained for Python 3
When to avoid
- you want a pure-Python driver with no compilation (use PyMySQL)
- you need async database access
- you cannot install MySQL/MariaDB client development headers on your system
Facets
library · maturity active
database-driver database databases backend web-development python windows cross-platform mysql mariadb db-api c-extension sql linux macos
3 sources
- readme: https://github.com/PyMySQL/mysqlclient · fetched 2026-09-26 · 60298428c4b9
- homepage: https://mysqlclient.readthedocs.io/ · fetched 2026-08-29 · 15ccc7806d50
- registry_pypi: https://pypi.org/pypi/mysqlclient/json · fetched 2026-08-29 · 64a102bf590b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PyMySQL/mysqlclient | main | 85 |
For agents
markdown · JSON · MCP: product_card(name="PyMySQL/mysqlclient")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem