You are not logged in.

#1 2015-12-20 03:00:22

Phrost5019
Member
Registered: 2015-02-20
Posts: 32

Best way of interfacing with MySQL databases in Python on Arch Linux?

I need to store and retrieve data from an sql database in python. I'm curious what the best package in the arch repositories is do to this with.

With 'yaourt mysql | grep python' I can see...
'mysql-python'
'python-mysql-connector'
'python-mysqlclient'
'python-oursql'
'python-pymysql'

Which one of these is best; "best" (in my opinion) being stable, easy to use, and simple.

I would also like to know which module to import in python for the package. I've tried 'mysql-python' since it is not in the aur, and therefore more likely to be stable and non-volatile. I can't seem to find the name of the module to import in the python interpreter.

I'm using 'mariadb' from the extra repositories, if that's relevant.

Offline

Board footer

Powered by FluxBB