mysql-connector-python,mysql-connector-python-rf和mysql-connector-repackaged之间有什么区别?
我想将mysql-connector
库用于python3.我可以改用pymysql
,但是mysql-connector
已经有一个连接池实现,而pymysql
似乎没有.因此,对于我来说,这将是更少的代码.
I'd like to use the mysql-connector
library for python 3. I could use pymysql
instead, but mysql-connector
already has a connection pool implementation, while pymysql
doesn't seem to have one. So this would be less code for me to write.
但是,当我这样做
$ pip3 search mysql-connector
我发现这3个库可用:
mysql-connector-repackaged - MySQL driver written in Python
mysql-connector-python-rf - MySQL driver written in Python
mysql-connector-python - MySQL driver written in Python
这非常令人困惑.有人知道我应该使用哪一个,为什么?
This is very confusing. Anybody knows which one I should use and why?
感谢您的帮助.
我只是问自己一个类似的问题,我想我找到了新鲜"的答案. 这是两周前的信息: https://github.com/pypa/warehouse/issues/5537
I was just asking myself similar question and I think I found the "fresh" answer. Here is info from two weeks ago: https://github.com/pypa/warehouse/issues/5537
目前看来,一个长时间不活跃的人是mysql-connector名称的所有者,因此MySQL开发人员以mysql-connector-python的名称发布.
It seems that currently a long-inactive person is owner of the mysql-connector name, hence MySQL developers release under name mysql-connector-python.