PyMySQL/PyMySQL
Some data may be outdated — see provenance labels.
MySQL client library for Python observed · 2026-09-26
Health v2 · maintenance only
96/100
- Activity 96
- Release rhythm 95
- 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: 17
- age_days: 5564
- days_rel: 33
- days_push: 27
- n_releases_24m: 6
Adoption not part of the score
7849 stars · 1442 forks observed · 2026-09-26
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-09-26 · 72192c58da51
- registry_pypi: https://pypi.org/pypi/pymysql/json · fetched 2026-08-29 · a019592106db
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PyMySQL/PyMySQL | main | 96 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem