whiteclover / dbpy

Database abstraction layer for pythoneer
Other
57 stars 10 forks source link

python3? #1

Closed wmjie closed 9 years ago

wmjie commented 9 years ago

are there plans to support Python 3?

whiteclover commented 9 years ago

the mysqldb doesn't support python3+

try use pymysql adapter:

Install the extension with the following command::

$ easy_install pymysql

or alternatively if you have pip installed::

$ pip install pymysql

then:

config = {
        'passwd': 'test',
        'user': 'test',
        'host': 'localhost',
        'db': 'test',
        'max_idle' : 5*60
    }

db.setup(config,  minconn=5, maxconn=10,  
    adapter='pymysql', key='defalut', slave=False)

I had never test dbpy on python3, if have bug, please feedback it to me :). just run the unittest on python3+.

i will try to push it on pypi on this weekday; so please git clone the last revision on github