SurrealDB Docs Logo

Enter a search query

Installation

In this section, you will learn how to install the Python SDK in your project.

Install the SDK

First, install the Python SDK from PyPI:

pip install surrealdb

Import the SDK to your project

After installing, you can then import the SDK into your project.

Sync API

from surrealdb import Surreal

Async API

from surrealdb import AsyncSurreal

Next Steps

After installing the SDK, check out the quick start guide to build your a simple application with the SDK. You can also learn more about carrying out common tasks with the SDK in the following sections: