Skip to main content

Python client for the Surreal Database (Websocket not supported)

Project description

surreal-db-python

A pure python (and compilable) database client for SurrealDB.

Installation

  1. Install with
pip install surreal-db-python
  1. (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)

Uploaded Source

Built Distributions

surreal_db_python-0.0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

surreal_db_python-0.0.1-cp39-cp39-win_amd64.whl (131.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page