Skip to main content

Pure Python MySQL Driver

Project description

This package contains a pure-Python MySQL client library. Documentation on the MySQL client/server protocol can be found here:

If you would like to run the test suite, edit the config parameters in pymysql/tests/ The goal of pymysql is to be a drop-in replacement for MySQLdb and work on CPython, Jython, IronPython and PyPy.

We test for compatibility by simply changing the import statements in the Django MySQL backend and running its unit tests as well as running it against the MySQLdb and myconnpy unit tests.


  • Python 2.6, 2.7 or 3.3
  • MySQL 4.1 or higher
  • protocol41 support, experimental 4.0 support


pip install PyMySQL

… or …

python install

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyMySQL, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size PyMySQL-0.5.tar.gz (31.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page