PyMySQL/PyMySQL
MySQL client library for Python observed · 2026-08-28
Health v2 · maintenance only
85/100
- Activity 98
- Release rhythm 60
- 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: 133.0
- age_days: 5516
- days_rel: 106
- days_push: 15
- n_releases_24m: 3
Adoption not part of the score
7844 stars · 1439 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PyMySQL is a pure-Python client library for MySQL and MariaDB, implementing the PEP 249 DB-API 2.0 interface. It requires no compiled extensions, making it easy to install and portable across Python implementations including PyPy.
Use cases
- connect to mysql from python
- query mariadb database in python
- pure python mysql driver without c dependencies
- execute sql inserts and selects with parameterized queries
- use mysql with pypy
- db-api 2.0 compliant mysql client
When to choose
- you need a dependency-free, pure-Python MySQL/MariaDB driver
- you're on PyPy or a platform where C extensions are hard to build
- you want a lightweight DB-API 2.0 client without an ORM
When to avoid
- you need maximum performance, where mysqlclient (C-based) is faster
- you want an ORM with models and migrations
- you use a different database like PostgreSQL
Facets
library · maturity stable
database-driver database databases backend developer-tools python cross-platform mysql mariadb db-api pure-python sql
2 sources
- readme: https://github.com/PyMySQL/PyMySQL · fetched 2026-08-28 · 72192c58da51
- registry_pypi: https://pypi.org/pypi/pymysql/json · fetched 2026-08-29 · a019592106db
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PyMySQL/PyMySQL | main | 85 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem