PyMySQL/mysqlclient
MySQL/MariaDB connector for Python observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 99
- Release rhythm 57
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 56
- age_days: 4510
- days_rel: 204
- days_push: 11
- n_releases_24m: 4
Adoption not part of the score
2536 stars · 443 forks observed · 2026-08-28
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-08-28 · 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 | 84 |
For agents
markdown · JSON · MCP: product_card(name="PyMySQL/mysqlclient")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem