Connecting to MatrixOne with Python
MatrixOne supports Python connection.
Note
MatrixOne only supports pymysql
driver in 0.5 release, sqlalchemy
and mysql-connector
are not supported yet.
Before you start
Make sure you have already installed and launched MatrixOne.
Using Python pymysql connect to MatrixOne
Download and install pymysql tool:
pip3 install pymysql
Call
import pymysql
in your application, for more information onpymysql
, see https://pypi.org/project/PyMySQL/.
Reference
For the example about using pymysql conn to MatrixOne, seeBuild a simple stock analysis Python App with MatrixOne.