Connecting to Crate with Python


Use pip to install the Crate Python package:

pip install crate

Import the client module from the crate package:

from crate import client

Connect to Crate

Use the client module to create a connection:

connection = client.connect(SERVER_IP)

Open a cursor to the database to enable queries.

cursor = connection.cursor()

Want to Know More?

Next Steps