It is possible to module written purely in Python that will permit a script to talk with a MySQL database? I have already attempted MySQLdb with no success. It takes an excessive amount of: GCC, zlib, and openssl. I actually do not need these power tools even when Used to do, I'd rather not spend your time keeping them interact. I am searching for tools that can make my work simpler.
Can someone point me in direction of a MySQL Python module designed in Python? Otherwise, tips about writing my very own code for interacting with MySQL could be appreciated.
You'll find pre-built binary packages for MySQLdb and it is dependencies for many os's.
What platform are you currently running on?
You've checked out these?
Thanks everybody for the solutions. Since I am using a small database (a couple of hundred records, mainly names and addresses) I have made the decision to make use of SQLite. I simply discovered it. It appears to become perfectly suited to my reasons it had been easy to install (required about two minutes) and utilizes Python. I am tied to Python 2.4 and so i can't make use of the sqlite3 module, but I am able to talk with the database by utilizing Python's 'subprocess.Popen' function and command-line parameters.
Certainly MySQLdb is the greatest solution, but when you cannot use it…
For those who have
dll], you can can get on directly using ctypes module.
As pointed out in earlier answer, MySQL Connector/Python implements the MySQL Server/Client completely in Python. No producing, just setting up.
It isn't complete yet, however it must have enough to help keep you going. (FYI, I'm the maintainer)