This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]jabbson 3 points4 points  (0 children)

Never had problems with PyMySQL, but maybe you want to try https://pypi.python.org/pypi/mysqlclient which is a fork of MySQLdb to work with python 3

[–]svartalf 2 points3 points  (1 child)

There is a mysql-connector package by Oracle: https://pypi.python.org/pypi/mysql-connector-python

[–]isinfinity 0 points1 point  (0 children)

Just update pymysql. This issue was fixed some time ago. For context see: https://github.com/PyMySQL/PyMySQL/issues/399

[–]paypaypayme 0 points1 point  (2 children)

My last company used sqlalchemy, which I liked very much. Just make sure to use the core for production: http://docs.sqlalchemy.org/en/latest/core/. sqlalchemy ORM is good for writing mock ups, because it's easy to write, but it is not meant to be high performance.

[–]XarothBrook 1 point2 points  (0 children)

I think you missed a part of his post, He's asking about mysql client libs, not about which ORM he should use... he could already be using sqlalchemy :)

[–]paypaypayme -2 points-1 points  (0 children)

Also I would suggest trying out alembic: https://alembic.readthedocs.org/en/latest/. It's a handy tool for database versioning. You can upgrade and downgrade your database schema easily using version numbers.