skip to navigation
skip to content

Not Logged In

cymysql 0.8.5

Python MySQL Driver using Cython

What’s CyMySQL

This package contains a python MySQL client library.

It is a fork project from PyMySQL .

PyMySQL is written by Yutaka Matsubara <> as a pure python database driver.

CyMySQL accerarates by Cython, and support not only python 2 but also python 3. It still can work without Cython as a pure python driver.

It is maintained by Hajime Nakagami <>.

Documentation on the MySQL client/server protocol can be found here:


  • Python 2.6 or higher
  • Cython 0.22 or higher
  • MySQL 4.1 or higher

Installation & Example

Install cython (optional)

# pip install cython

Install cymysql

# pip install cymysql


import cymysql
conn = cymysql.connect(host='', user='root', passwd='', db='database_name', charset='utf8')
cur = conn.cursor()
cur.execute('select foo, bar from baz')
for r in cur.fetchall():
   print(r[0], r[1])
File Type Py Version Uploaded on Size
cymysql-0.8.5.tar.gz (md5) Source 2015-10-02 375KB
  • Downloads (All Versions):
  • 274 downloads in the last day
  • 1562 downloads in the last week
  • 6539 downloads in the last month