Pre-release
This release is a pre-release and may not be stable for production use.
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.
Metadata
Release files for pysurreal 1.0.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysurreal-1.0.0a0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysurreal-1.0.0a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / pysurreal-1.0.0a0.tar.gz
| Download URL | pysurreal-1.0.0a0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6db9ee038ca8fdb33246649b57068afd11b900537699eb25d35742b973fbab0
|
|
BLAKE2b-256 checksum How to use checksums |
c981fcaa1ca93890c710c779ac096565e5225ec483154e200c179400b6f175f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.5 Linux/5.19.1-arch2-1
|
Release files / pysurreal-1.0.0a0-py3-none-any.whl
| Download URL | pysurreal-1.0.0a0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5192a0b7bb4fb0356b4e63121aaf234e3f36b3fe2815de687d809c1094f6b4a6
|
|
BLAKE2b-256 checksum How to use checksums |
aa36444f6046a40f26d3f40c3eac832ce3a80043d8b652ee5f0282b159ea82ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.5 Linux/5.19.1-arch2-1
|