Skip to main content

Community-created Python connector and ORM for SurrealDB.

Project description

pysurreal

Community-created Python connector and ORM for SurrealDB.

Installation

Raw Python:

python3 -m pip install pysurreal

Poetry:

poetry add pysurreal

Basic Usage

from asyncio import run

from pysurreal import Client


async def main() -> None:
    async with Client("http://localhost:8000", "namespace", "database", "root", "root") as client:
        result = await client.raw_query("""
            CREATE example:123 SET
                name = 'example',
                list = ['a', 'b', 'c']
            ;
        """)

        if result.error is not None:
            print(result.error.information)
            return

        print(result.response)


run(main())

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contributing

Thank you for your interest in contributing to pysurreal! Please see the Contributing Guidelines for more information about contributing.

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

pysurreal-1.0.0a0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pysurreal-1.0.0a0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pysurreal-1.0.0a0.tar.gz.

File metadata

  • Download URL: pysurreal-1.0.0a0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.5 Linux/5.19.1-arch2-1

File hashes

Hashes for pysurreal-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 f6db9ee038ca8fdb33246649b57068afd11b900537699eb25d35742b973fbab0
MD5 fd1ed402b5212c29558f9621fb024f01
BLAKE2b-256 c981fcaa1ca93890c710c779ac096565e5225ec483154e200c179400b6f175f4

See more details on using hashes here.

File details

Details for the file pysurreal-1.0.0a0-py3-none-any.whl.

File metadata

  • Download URL: pysurreal-1.0.0a0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.5 Linux/5.19.1-arch2-1

File hashes

Hashes for pysurreal-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 5192a0b7bb4fb0356b4e63121aaf234e3f36b3fe2815de687d809c1094f6b4a6
MD5 7ff757b19ce0440ed2e18795259154cf
BLAKE2b-256 aa36444f6046a40f26d3f40c3eac832ce3a80043d8b652ee5f0282b159ea82ca

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