Skip to main content

Python bindings for IssunDB

Project description

IssunDB for Python

Python version PyPI version Documentation Examples License: MIT

This directory contains 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

issundb-0.1.0a6-cp310-abi3-win_amd64.whl (8.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a6-cp310-abi3-manylinux_2_28_x86_64.whl (10.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

issundb-0.1.0a6-cp310-abi3-manylinux_2_28_aarch64.whl (8.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a6-cp310-abi3-macosx_11_0_arm64.whl (6.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file issundb-0.1.0a6-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: issundb-0.1.0a6-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 8.2 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

Hashes for issundb-0.1.0a6-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cbe9c6e279805d800ca9f678dee96b989f7929be2a33853e4a93c5288c9cf3b6
MD5 d760b33ff6e9163ffc623fd0a5efd071
BLAKE2b-256 9336d48ac8203f18054025e01772f64812e7fd9683b7fc4ae743972090e39944

See more details on using hashes here.

File details

Details for the file issundb-0.1.0a6-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for issundb-0.1.0a6-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 766d4f61213dac6b730b008fca5a53a44b4e8a241e2d418a45f1332a60e9da96
MD5 8e0116880d14f699c46232698015917c
BLAKE2b-256 0aad37e07c8ccc9ee9995deac7febc98fd26910e957a129fbdc19ed141013e9e

See more details on using hashes here.

File details

Details for the file issundb-0.1.0a6-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for issundb-0.1.0a6-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4604dc8db7eb25cf1a6f0952c594fe462cccd247996b410170e627bc7a6b160d
MD5 775b872066e5bb974e7d812c0fd0848b
BLAKE2b-256 54bf2daa7d88885a78b86b3d952eaee4f3dc5379f562acb882cac80a44a95868

See more details on using hashes here.

File details

Details for the file issundb-0.1.0a6-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for issundb-0.1.0a6-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27e1187b48c3d32128a609fc446880e5c88b8a43a90310ce81a72ee194b0fa59
MD5 3c3550d3e97ef82d20a342349021535f
BLAKE2b-256 625cc344872ee5c6c202b19bae24050f0b1cec5b10e220567a9123968ef9f742

See more details on using hashes here.

Supported by

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