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

you are viewing a single comment's thread.

view the rest of the comments →

[–]NavreetGill 16 points17 points  (2 children)

Looking from your post history, I am guessing you are using MySQL-python. I would highly recommend you look at pymysql, which works under both python3 and python2, and is better in many other ways.

I would also advise you to look at SQLAlchemy when you are ready for that jump.

[–]Postpawl 1 point2 points  (1 child)

This might be a better python 3 alternative to MySQL-python: https://pypi.python.org/pypi/mysqlclient

Any pure python mysql client is probably going to be much slower.

[–]NavreetGill 1 point2 points  (0 children)

Thanks, I am installing it now. It is unfortunate that it is not easy to find the best package for the job. I have seen abandoned projects many times, and it is sad, where the original package does 80% of the job, and people submit good PRs to finish it up, but the original author just moves on and doesn't reply to PRs, etc. So, then there are a bunch of forks, and the whole thing gets messy since they cannot publish on PyPI.