About Connector/Python

MariaDB Connector/Python enables python programs to access MariaDB and MySQL databases, using an API which is compliant with the Python DB API 2.0 (PEP-249).

Version 2.0 offers flexible distribution options:

  • Pure Python - Works on all platforms, no compiler required

  • C extension - Maximum performance (2-12× faster on data-heavy workloads)

  • Pre-compiled wheels - No MariaDB Connector/C installation needed

All implementations support both synchronous and asynchronous operations.

Installation:

# Pure Python (default)
$ pip3 install mariadb

# C extension for maximum performance
$ pip3 install mariadb[c]

# Pre-compiled binary wheels
$ pip3 install mariadb[binary]

# With connection pooling
$ pip3 install mariadb[binary,pool]

This page is covered by the Creative Commons Attribution 3.0 licensearrow-up-right.

spinner

Last updated

Was this helpful?