oursql
oursql is a set of MySQL bindings for python with a focus on wrapping the MYSQL_STMT API to provide real parameterization and real server-side cursors. (by python-oursql)
PyMySQL
Pure Python MySQL Client (by PyMySQL)
Our great sponsors
oursql | PyMySQL | |
---|---|---|
0 | 4 | |
35 | 6,889 | |
- | 0.9% | |
0.0 | 5.8 | |
over 1 year ago | about 1 month ago | |
C | Python | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
oursql
Posts with mentions or reviews of oursql.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning oursql yet.
Tracking mentions began in Dec 2020.
PyMySQL
Posts with mentions or reviews of PyMySQL.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-23.
-
What is the defacto python driver for Mysql?
Pymysql is the one i have seen being used most commonly. https://github.com/PyMySQL/PyMySQL
-
There are many options for connecting MySQL from Python, but let's use PyMySQL or mysql-connector-python for now.
PyMySQL
-
Python 3.10.1
However, please note you don't need to use MySQLdb as your connector- I was very happy with pure-Python MySQL client library pyMySQL: https://pypi.org/project/PyMySQL/#installation https://github.com/PyMySQL/PyMySQL/ So far, I have been happy with its maintenance and compatibility of newer MySQL and MariaDB features (e.g. newer authentication methods). It is MIT-licensed.
-
Python3 Mysql Connector Issue. Help!!!
My preferred connector is pymysql, which I know supports it https://github.com/PyMySQL/PyMySQL/issues/651 but either use anyone that works for you or disable this feature on MySQL server, as suggested on that ticket.
What are some alternatives?
When comparing oursql and PyMySQL you can also consider the following projects:
mysqlclient - MySQL database connector for Python (with Python 3 support)
mysql-python - MySQLdb is a Python DB API-2.0 compliant library to interact with MySQL 3.23-5.1 (unofficial mirror)
asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.
awesome-mysql - A curated list of awesome MySQL software, libraries, tools and resources
awesome-postgres - A curated list of awesome PostgreSQL software, libraries, tools and resources, inspired by awesome-mysql
python-mysql-replication - Pure Python Implementation of MySQL replication protocol build on top of PyMYSQL
sqlite3 - Python DB-API module for SQLite 3.