Python client for the Surreal Database (Websocket not supported)
Project description
surreal-db-python
A pure python (and compilable) database client for SurrealDB.
Installation
- Install with
pip install surreal-db-python
See how to build your own wheel here
- (Optional) You could make library pure python by set
SURREAL_BUILD_NO_COMPILE
enviroment variable to 1
Usage
import surreal
client = surreal.SurrealDB(
host: str,
username: str,
password: str,
db: str,
namespace: str
)
client.execute("CREATE deez:nut SET nice = 69 + 420;")
client.fetch("SELECT * FROM deez:nut;")
Features
- Supported Asynchronous Operation (with class
AsyncSurrealDB
) (AsyncSurrealDB
have same API as `SurrealDB but you await them.) - (not) Supported websocket (yet)
Build from source
-
Clone repository
-
poetry install
-
./setup.py install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for surreal_db_python-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a7a781cf73e3dd6ce096b9bd1ca5413058a953b606cf09d2b81ab3483268b4 |
|
MD5 | 3891c0e8802ac58c3072a1686796ece7 |
|
BLAKE2b-256 | 01a37c158d1f1ffaa2ad3ba85b9e0da28f9a6f0be174794e0965afe487266f8e |