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

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

  1. Clone repository

  2. poetry install

  3. ./setup.py sdist bdist_wheel for wheel or ./setup.py install for install package directly (egg included)

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-1.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

surreal_db_python-1.0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file surreal-db-python-1.0.2.tar.gz.

File metadata

  • Download URL: surreal-db-python-1.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for surreal-db-python-1.0.2.tar.gz
Algorithm Hash digest
SHA256 81cc270a979aa191c65ff86280a970c4e4cefb3eec48b76201821037a05245b1
MD5 5b47e132d65b38d2e2ecf522ca7d73c8
BLAKE2b-256 96b7eedaa9488b709e88d426c41d7cec9ef407cfeb2835c285f96b3e13dbf6e9

See more details on using hashes here.

File details

Details for the file surreal_db_python-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for surreal_db_python-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b2eebb7f0228862cde333306932f6d4b085b6e8c945eae25969eb609c1dce49
MD5 ed5ff2de6dccfdc73781422940c530cb
BLAKE2b-256 eb2ce4f8c802e63d558de131d010acea8e24c1e16d4f96681ec681cd62475b4d

See more details on using hashes here.

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