
Description
Connecting a Python script to MySQL usually means pulling in extra dependencies. The official Connector/Python needs nothing beyond the Python standard library.
MySQL Connector/Python follows the Python Database API Specification PEP 249, so switching drivers means very few code changes. It converts parameters and results between Python and MySQL types, automatically or by hand.
Standard library only: a self-contained driver with no extra Python modules.
PEP 249 compliant: the familiar DB-API 2.0 cursor workflow just works.
Type conversion: parameters and results convert between both sides, automatically or manually.
Compression and encryption: protocol compression and secure TCP/IP connections with SSL certificates.
MySQL Connector/Python follows the Python Database API Specification PEP 249, so switching drivers means very few code changes. It converts parameters and results between Python and MySQL types, automatically or by hand.
Features
Standard library only: a self-contained driver with no extra Python modules.
PEP 249 compliant: the familiar DB-API 2.0 cursor workflow just works.
Type conversion: parameters and results convert between both sides, automatically or manually.
Compression and encryption: protocol compression and secure TCP/IP connections with SSL certificates.
