Learn how to install and get started with the SQLAlchemy dialect for CrateDB. The package is available from PyPI at sqlalchemy-cratedb.

Table of contents


To install the most recent driver version, including the SQLAlchemy dialect extension, run:

pip install --upgrade sqlalchemy-cratedb

After that is done, you can import the library, like so:

>>> from sqlalchemy_cratedb import dialect

Set up as a dependency

There are many ways to add the sqlalchemy-cratedb package as a dependency to your project. All of them work equally well. Please note that you may want to employ package version pinning in order to keep the environment of your project stable and reproducible, achieving repeatable installations.

Next steps

Learn how to get started, or how to connect to CrateDB.