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
- (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)
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
surreal-db-python-0.0.1.tar.gz
(87.1 kB
view hashes)
Built Distributions
Close
Hashes for surreal_db_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46fd45b2918977fa508be715e3083d9fbb82658deb11b782a7f06e828931688 |
|
MD5 | a2c341eefeb7ff2348756f1288392240 |
|
BLAKE2b-256 | d23dc2deed5be0500960415c9191d4ff53aa63c5322bcc3d404c28c428d21c8e |
Close
Hashes for surreal_db_python-0.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26df963cd7078bf647ca05488927dad969e847723c4c7097c645997857b217c6 |
|
MD5 | 3710d60fa97646217b0d9c469b85b8ae |
|
BLAKE2b-256 | 5314de3152d1917b2ca9b653389c64684bf3baf46f867f13e36ca884a5f12f1e |