Python SDK from PyPI:
pip install surrealdb
After installing, you can then import the SDK into your project.
Sync API
from surrealdb import Surreal
Async API
from surrealdb import AsyncSurreal
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: