surrealpy is another Python tool for working with SurrealDB v2.x.
It is asynchronous and unofficial, so if you need an
- Official client, go here. But the current release v0.3.2 is not really usable in async environments Bug: Concurrency issues
- Unofficial but up to date synchronous client, go here
This is a very rough release, it works for me (python 3.12 on macos) but needs to be tested on more environments.
- Asynchronous
- CBOR over websocket: live queries, small data transfers, full type conversion between surrealdb and python.
- Only two dependencies (websockets and CBOR)
- Not well documented
- Not well tested
- Only compatible with SurrealDB 2.x
- Add all SDK methods (missing: signup, graphql, run, insert, insert_relation, upsert, relate, merge, patch)
- Documentation
- Testing
- Move to websocket-client ?
- optional adapter between geometry objects and Shapely
- optional adapter for pydantic
Via pip:
pip install 'git+https://github.com/Anton-2/surrealpy.git'
.