PythonDb pip install SQLAlchemy pip install mysql-connector-python 2 examples One uses just mysql connector to connect and query database The other uses sqlAlchemy (with mysql connector) for more advanced functionality and ORM mapping