MySQL Connector/Python v1.1.4 GA

It has been a busy week for the Pythonic MySQL Team at Oracle: MySQL Utilities 1.3.6 and a brand new Utilities 1.4.1 Alpha has been release which includes Fabric. Yes, and of course, the one binding them all: Connector/Python v1.1.4 has been released as GA (General Available). Check out the Change History if you want to keep up with what is being added and changed.

New features found in v1.1:

  • Important: Connector/Python will not work with Python v2.4 or v2.5. Yes, I consider this a feature.
  • Connector/Python comes with it’s own database backend for Django v1.4 and v1.5. It supports Python v3 and also support microsecond precision when using MySQL 5.6 and later.
  • MySQL Prepared Statements are now supported.
  • Connection Pooling is now available baked into Connector/Python.
  • Start transactions using the MySQLConnection start_transaction() method and find out whether the session has a transaction on going using the in_transaction property.

Some useful links:

Comments

Chris Streeter
I was wondering if you guys are going to update the version that can be installed through PyPI? That is pretty much the standard way to install packages these days for Python, and not having an up-to-date installable version seems like an oversight?
Geert Vanderkelen

@Chris: Yes, of course. There was somehow a problem logging in yesterday, but seems to somehow work now. I added Connector/Python v1.1.4 while keeping v1.0.12 also available for the folks still on Python v2.4/v2.5.

Note that I’m very concerned about a very weird message when running pip:

“You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files. You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.”

The fact that files are more secure when hosted at pypi is to me False (yes, with a big F :)),

Joan Viladrosa
What about django 1.6 support? Is there any way to make it work?
Geert Vanderkelen
Yes, we’re working on a fix for Django v1.6. Stay tuned.
Mo Mo
Can you tell me what’s the best version of MySQL Connector/Python that supporting Django 1.5 for now(2014.09)?
Geert Vanderkelen
I replied privately, but best is to always use the latest Connector/Python. Not sure how long we can keep supporting older Django versions.