Differences between revisions 34 and 35
Revision 34 as of 2011-08-05 20:41:03
Size: 3399
Comment: Undo spam
Revision 35 as of 2011-12-09 00:23:15
Size: 3399
Editor: domain
Comment: MySQL for Python supports python 2.6 (or claims to, see associated URL)
Deletions are marked like this. Additions are marked like this.
Line 42: Line 42:
  Python versions:: 2.3 - 2.5   Python versions:: 2.3 - 2.6

MySQL

URL

http://www.mysql.com/

license
GPLv2
platforms
Unix, win32, win64, MacOS X, i5/OS

Pros

  • Easy to install and administer
  • Support for many SQL Features (v5.0 and up):
    • Good compliance with SQL standards
    • Foreign Keys (using InnoDB)
    • Stored Routines
    • Views
    • Triggers
  • Subqueries (as of v4.1)
  • Partitioning (as of v5.1)
  • ACID compliant (InnoDB and NDB storage engines)
  • Character set support
  • Built-in Replication
  • Many administration tools from third parties
  • Widely deployed
  • Regarded as being fast
  • Modular storage engines and interesting clustering features

Cons

  • Early versions (v4.1 and earlier) have the reputation for only basic SQL support (entry-level SQL 92) and deviations from the standards. Many interesting features (views, triggers,..) are included in the latest version (5 and above), but are missing in prior versions. Check SQL Modes for making MySQL more strict.

  • Some gotchas for MySQL v4.1 and earlier.


DB API 2.0 Drivers

MySQL for Python

URL

http://sourceforge.net/projects/mysql-python

License
GNU General Public License (GPL), Python License (CNRI Python License), Zope Public License
Platforms
OS Independent
Python versions
2.3 - 2.6

MySQL on-line documentation, additional forums (maintainer does not currently read these)

PyMySQL

URL

http://www.pymysql.org/

License
MIT
Platforms

OS Independent, CPython 2.x and 3.x, PyPy, Jython, IronPython

Python versions
2.4 - 3.2
  • Pure-Python focused on simplicity and compatibility
  • Virtually 100% compatible with MySQLdb
  • Good performance

mxODBC

URL

http://www.egenix.com/products/python/mxODBC/

License
eGenix Commercial License
Platforms
Windows, Linux, MacOS X, FreeBSD, Solaris, AIX
Python versions
2.1 - 2.5

mxODBC is compatible with the MySQL ODBC driver on Windows and Unix.

pyodbc

URL

http://code.google.com/p/pyodbc

License
MIT
Platforms
Windows, Linux, MacOS X, FreeBSD, Solaris, Any (source provided)
Python versions
2.4+

Actively maintained Open Source project.

Precompiled binaries are available for Windows. Red Hat Enterprise Linux, Centos, and Fedora have precompiled RPMs available in their Extras repositories.

MySQL Connector/Python

URL

https://launchpad.net/myconnpy

License
GNU GPL v2
Platforms
Any (presumably)
Python versions
v2.4 to v2.7 and Python v3.1
  • Implements the Python DB API 2.0 (PEP 249)
  • Pure Python implementation of the MySQL protocol.
  • Actively developed and maintained by Sun Microsystems, Inc.

mypysql

URL

http://sourceforge.net/projects/mypysql/

License
GNU GPL v3+
Platforms
Any (presumably)
Python versions
3
  • This module provides (yet) incomplete PEP 249 functionality
  • C implementation of MySQL database connector
  • A majority of the commands are implemented
  • Still experimental but actively developed


Supported Python Applications

  • Zope

  • A MySQL driver exists for PyDO (Python Data Objects)

MySQL (last edited 2018-05-04 13:35:05 by DavidDLowe)

Unable to edit the page? See the FrontPage for instructions.