# PyMySQL

> A pure-Python MySQL and MariaDB client library.

Source: https://talira.ai/catalog/pymysql-ztrz8988
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers)
- Licence: MIT[^2]
- Pricing: Free[^1]
- Free tier: yes[^1]
- Backed by: [PyMySQL](https://talira.ai/orgs/pymysql.md)

PyMySQL is a MySQL and MariaDB client library written entirely in Python, following the Python DB-API 2.0 (PEP 249). It needs no C extension, so it installs anywhere Python runs, and it works with [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md) and [MariaDB Server](https://talira.ai/catalog/mariadb-server-bxse0j6g.md) LTS versions.

## Links

- Website: https://pymysql.readthedocs.io/
- GitHub: https://github.com/PyMySQL/PyMySQL
- Docs: https://pymysql.readthedocs.io/

## Problems it solves

- connect to a MySQL database from Python without compiling a C extension
- query MariaDB from a Python script
- a MySQL driver that works on PyPy

## Features

- pure Python, with no C extension to compile
- Python DB-API 2.0 (PEP 249) interface
- sha256_password and caching_sha2_password authentication with the rsa extra
- MariaDB ed25519 authentication with the ed25519 extra

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 0.76, adoption 0.78, momentum 0.50, community 0.86, backing 0.30, extensibility 0.00.

- last commit 20 days ago
- 24 commits in the last 90 days
- latest release v1.2.4 20 days ago
- 7.9k GitHub stars
- 138 contributors
- accepts sponsorship (Github, Tidelift)
- has a company behind it

## Related

- Works with [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md)
- Works with [MariaDB Server](https://talira.ai/catalog/mariadb-server-bxse0j6g.md)

## Sources

[^1]: https://github.com/PyMySQL/PyMySQL/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/PyMySQL/PyMySQL/blob/main/LICENSE (checked 29 Nov 2026)
