--- id: pymysql version: "1.2.0" license: MIT license_treatment: permissive maintenance: active --- # PyMySQL — Pure Python MySQL Driver License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install pymysql uv add pymysql poetry add pymysql ## Description [![Documentation Status](https://readthedocs.org/projects/pymysql/badge/?version=latest)](https://pymysql.readthedocs.io/) [![codecov](https://codecov.io/gh/PyMySQL/PyMySQL/branch/main/graph/badge.svg?token=ppEuaNXBW4)](https://codecov.io/gh/PyMySQL/PyMySQL) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/PyMySQL/PyMySQL) # PyMySQL This package contains a pure-Python MySQL and MariaDB client library, based on [PEP 249](https://www.python.org/dev/peps/pep-0249/). ## Requirements - Python -- one of the following: - [CPython](https://www.python.org/) : 3.9 and newer - [PyPy](https://pypy.org/) : Latest 3.x version - MySQL Server -- one of the following: - [MySQL](https://www.mysql.com/) LTS versions - [MariaDB](https://mariadb.org/) LTS versions ## Installation Package is uploaded on [PyPI](https://pypi.org/project/PyMySQL). You can install it with pip: $ python3 -m pip install PyMySQL To use "sha256_password" or "caching_sha2_password" for authenticate, you need to install additional dependency: $ python3 -m pip install PyMySQL[rsa] To use MariaDB's "ed25519" authentication method, you need to install additional dependency: $... ## AI interpretation — verify before relying Pure-Python MySQL and MariaDB client library implementing PEP 249, enabling direct database connections without compiled dependencies. Verdict: Stable, actively maintained pure-Python MySQL driver with no runtime dependencies and permissive MIT licensing. Zero known vulnerabilities and top-1000 popularity make it a reliable choice for Python-to-MySQL connectivity. [View on SkillFed](https://skillfed.io/packages/pymysql) · [View on PyPI](https://pypi.org/project/pymysql/)