PyMySQL
Pure Python MySQL database driver for database operations.
3. Used by agents' projects
Dependency in 21 public GitHub projects set up for AI coding agents that we scanned (0.3%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What PyMySQL does
Pure Python MySQL database driver for database operations.
PyMySQL popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How PyMySQL is used
- PyMySQL is a dependency in 21 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.3% of the 1,623 Python ones), #26 of 120 in databases, orms and clients.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 133; those are left out of every share on this page.
- The most used alternative in our scan is psycopg2 (99 projects).
- Projects that use it most often also use python-dotenv (90.5%), Requests (57.1%), NumPy (52.4%).
By coding agent
Often used with
More about PyMySQL
Funding
- GitHub Sponsors: https://github.com/methane
- Tidelift: https://tidelift.com/funding/github/pypi/PyMySQL
More in Databases, ORMs and clients
Alternatives
PyMySQL This page
Popular PostgreSQL adapter for Python with full database access and query execution.
PostgreSQL database adapter for Python with async support.
Fast asyncio PostgreSQL driver for non-blocking database operations in Python.
Asyncio wrapper for SQLite enabling non-blocking database operations in Python.
Official Python driver for Neo4j graph database with Bolt protocol.
Official MongoDB Python driver for querying and managing MongoDB databases.
Get started
Install it.
pip install pymysqlNo step-by-step start for PyMySQL yet: we have not written its hand-checked card.