Python bindings for IssunDB
Project description
IssunDB for Python
The Python bindings for IssunDB.
Installation
pip install issundb
Quickstart
import json
from issundb import IssunDB
# Open or create a database
db = IssunDB("./issundb-data")
# Add two nodes (with properties)
alice = db.add_node("Person", json.dumps({"name": "Alice", "age": 30}))
bob = db.add_node("Person", json.dumps({"name": "Bob", "age": 28}))
# Add a directed edge between the nodes
db.add_edge(alice, bob, "KNOWS", json.dumps({"since": 2021}))
# Run a Cypher query and and print the results
result = json.loads(
db.query("MATCH (a:Person)-[r:KNOWS]->(b:Person) RETURN a.name, b.name, r.since")
)
print(result["columns"])
for record in result["records"]:
print(record["values"])
# Output:
['a.name', 'b.name', 'r.since']
['Alice', 'Bob', 2021]
Documentation
Visit IssunDB's documentation for detailed information including examples and API references.
License
The content of this directory are avaible under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file issundb-0.1.0a12-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: issundb-0.1.0a12-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 8.4 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f11d2af36492faeb4b6bfa430bd975d4f428197ba75836f555680b216d5afd4a
|
|
| MD5 |
88cf22ae4df03a64ca8139176cc150cb
|
|
| BLAKE2b-256 |
54c98f49058d4ad5a7a1c017c2440b6f6b208c9cad8c489832ab0f1283013e43
|
File details
Details for the file issundb-0.1.0a12-cp310-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: issundb-0.1.0a12-cp310-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 10.2 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
799ead0110b3c268b9c4c316a097f45c386f4e9f71dc713953138a479df26dd5
|
|
| MD5 |
556f26fa2d598409f515a8904990d28d
|
|
| BLAKE2b-256 |
1d720718fb353964c9d7c4767606df4af3291eac5c2dcebb5d9c87e4f419fa96
|
File details
Details for the file issundb-0.1.0a12-cp310-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: issundb-0.1.0a12-cp310-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 9.1 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a9fee5ce000dd04e38cf8d1d5ec73189976f0345834e178f8a7f5bb282ead02
|
|
| MD5 |
a755c62ae45f3e33d175cc29b592059b
|
|
| BLAKE2b-256 |
d295e4337d781cee4ed643e7427b0505aa3e019b848ff1180288799f93aca62f
|
File details
Details for the file issundb-0.1.0a12-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: issundb-0.1.0a12-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 6.9 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8909995664d0e2afeb7ef04a537966ca14f08883532f521178b58e961799b4bb
|
|
| MD5 |
955380d90dfc33ef236ddb608c4de3e0
|
|
| BLAKE2b-256 |
86f73204e9f57cbb9e4aac45094195d772e48371a7458b854db52f1f06e4b032
|