Enter a search query
The SurrealDB SDK for Python lets you connect to SurrealDB from any Python application. It supports both synchronous and asynchronous workflows, connecting to remote instances over WebSocket or HTTP, and running embedded databases in-process. The SDK provides methods for querying, managing data and authentication, and subscribing to real-time updates with live queries.
The SDK requires Python 3.10 or later.
Install the SDK using pip and import it into your project.
Connect to SurrealDB and perform your first queries in minutes.
Understand how to connect, authenticate, query, and work with data types.
Complete reference for all classes, methods, types, and errors.
To contribute to the SDK code, submit an Issue or Pull Request in the surrealdb.py repository. To contribute to this documentation, submit an Issue or Pull Request in the docs.surrealdb.com repository.